I found out that GCM marks the registration identifier for deletion when it cannot send the next push notification.
But in my case, the following situation happened to my user.
Scenario :
1) My user has installed the application and his device is registered with GCM.
2) The same user uninstalled and immediately installed the application. The second time a new registration identifier is generated.
3) These two registration identifiers are stored in my database.
4) Now this particular user receives two push notifications.
Now I have the following questions:
Questions:
- Will GCM delete the old registration ID after some time?
- Please suggest me how to deal with this situation?
source share