12

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

Turning off notifications of an app from Applications Manager

Since Android 4.1, users can turn off notifications of an app from application manager. Can I turn on/off notifications from an app programatically? Is there an API for doing that?

Gopinath
  • 12,981
  • 6
  • 36
  • 50

2 Answers2

7

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.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
  • 1
    For the rooted devices, XDA-developers have released a notification manager app. http://forum.xda-developers.com/showthread.php?t=2217572 – Gopinath Apr 05 '13 at 03:35
  • But rooted devices are sparse and not so huge in volumes. This is not our targetbase for distributing the app. – Gopinath Apr 05 '13 at 03:37
  • Hi @Marcin Orlowski do you think android have introduce anything now a days for doing above thing ? – Rajesh Panchal Jun 04 '19 at 13:46
  • 1
    @RajeshPanchal I do not think so, otherwise muted app (esp. all these posting ads there) would most likely start spamming other way. – Marcin Orlowski Aug 27 '19 at 01:41
-1

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.

sonique
  • 4,539
  • 2
  • 30
  • 39