GCM (Google Cloud Messaging) does not send an error when uninstalling an application

I am trying to switch from C2DM to GCM, and it basically works fine. C2DM is used to handle remote applications very well, sending a NotRegistered error when the user uninstalled the application. GCM supposedly does this as well (although it is not guaranteed). However, it does not seem to work. After sending several GCM notifications to the phone that deleted the application, it still continues to respond to the usual answer "id = ...".

Anyone else run into this problem? If so, how did you solve it?

+7
source share
2 answers

We can not do anything with it. Only Google knows when the application will be uninstalled, and update the device registration database accordingly. It may take several hours for a NotRegistered response to return? If you still don’t get it after one day, then write a bug report: http://code.google.com/p/android/issues/list

I can’t imagine that Google will make this mistake too long as they potentially look at sending phantom notifications to thousands or hundreds of thousands of devices.

+1
source

I switched from C2DM to GCM, and I thought I had this problem too. In short, try to remove the application from the phone / emulator, and then do not reinstall it on this phone / emulator and do not leave the phone / emulator working for several hours , then you should get a NotRegistered error if you try to click on this device registration ID.

If I remember correctly, even if you reinstall the application in C2DM after uninstallation, you will receive a NotRegistered error for the first registration ID, this does not apply to GCM (usually, if two registration IDs are not always the same), and I spent a week thinking GCM had an error when it did not send this error ...

+1
source

All Articles