Strange allow/deny question on Huawei 5.1 phone when showing notification

走远了吗. 提交于 2019-12-01 19:54:42

It's Huawei customized Android OS feature. Long story short, you can't disable it.

I saw it a lot when I test my app. Huawei OS thinks your notification might annoy the end user(yourself, in this case) because it happened a lot.

You don't have to concern it😀

Huawei's version of the Android OS has a custom feature that tries to spot apps doing annoying numbers of notifications.

Don't focus on the word "push". It doesn't mean "push notifications" in the technical sense of coming from the internet. It just is a verb, they could have said "allow app to create notifications" or "allow app to cause notifications" it's the same meaning.

Anyway, this is an OS feature, there is nothing you can do to avoid it except make sure you aren't spammy with your notifications. Unfortunately during development and testing you will often be triggering a lot of notifications, and the OS will detect your app is spammy. Don't worry about it. As long as your app works well for normal users it shouldn't happen.

Your use deprecated constructor. Your must specify channel. Like this:

Notification.Builder builder = new NotificationCompat.Builder(context,"MyPerfectApplication")

Otherwise you use unknown chanel, possible you try to push in system channel.

it's indeed a custom check of EMUI, which enables the user to decide whether or not to have these custom notifications being pushed into the default notification channel, before a single one of these notifications had ever been displayed, when the first push is being attempted. it generally controls the notification settings of your app on Huawei devices, from within that notification panel. system & vendor applications are permitted to push notifications by default and therefore it won't ever ask the user for a double confirmation there. this has nothing to do with excessive notifications, because it is a precondition to even have these notifications pushed, no matter the amount.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!