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.
source
share