Turn off notifications of an app programatically on Android

前端 未结 2 1557
忘掉有多难
忘掉有多难 2020-12-11 03:42

I am developing a package manager application which shows checkboxes to turn off notifications from different applications installed on the Android device.

相关标签:
2条回答
  • 2020-12-11 04:06

    No, you cannot do that from your code. Perhaps on rooted devices you could do some magic, but that shall not really count for wider audience.

    0 讨论(0)
  • 2020-12-11 04:13

    If you are App dev, you should manage that on server side, having a webservice (REST API) allowing the user to unsubscribe to the notifications. Then implement a Settings section in your App where user can uncheck a notification box and that call this service. Then, your server will not send the notification to this user.

    0 讨论(0)
提交回复
热议问题