How to check if my app is allowed to show notification

后端 未结 6 1026
执念已碎
执念已碎 2020-12-05 06:49

In Android settings users can turn off notification if they don\'t want to. So is there any method that like isNotificationAllowed() to check is my app is allow

6条回答
  •  无人及你
    2020-12-05 07:06

    Try this:

    Is there a way an app can check if it is allowed to access notifications?

    And there's a bit more explaination here:

    Check for access to notifications using NotificationListenerService

提交回复
热议问题