Disable app notifications programmatically on Android

I am developing a package manager application that shows checkboxes to disable notifications from various applications installed on an Android device.

Turning off notifications of an app from Applications Manager

Starting with Android 4.1, users can disconnect application notifications from the application manager. Can I enable / disable notifications from the application programmatically? Is there an API for this?

+6
source share
2 answers

No, you cannot do this from your code. Perhaps you could do some magic on the root devices, but this should not be considered a wider audience.

+4
source

If you are an application developer, you must manage this on the server side with a web service (REST API) that allows the user to unsubscribe from notifications. Then follow the "Settings" section in your application, where the user can uncheck the notification window and call this service. Then your server will not send a notification to this user.

-2
source

All Articles