Check Android Push Notification Status

The user can disable push notifications in later versions of android for the application, is there a way that the application can know that push notifications are disabled by the user in the settings?

+4
source share
1 answer

Take a look here: http://developer.android.com/google/gcm/adv.html#unreg
One way is explained there.

Another way could be:
If you have implemented a GCM server, your application will send a message to the server saying that it no longer wants any updates.
After that, the server removes regId from the database of its devices.
From now on, your device should not receive push messages.

You can also try to make a decision on the client side and filter messages if the user does not need any push messages (this way they will still be sent on the server side).

So, I would execute the server side solution. This seems to be the cleanest way for me.

0
source

All Articles