I came to know that GCM marks registration id for deletion when it is unable to send the next push notification.
But in my case following situation happened to my user.
Scenario :
1)My user installed the app and his device is registered with GCM.
2)Same user uninstalled and installed the app again immediately. Second time a new registration id is generated.
3)These two registration ids are stored in my database.
4)Now this particular user is getting two push notifications.
Now I have the following questions :
Questions :
- Will GCM deletes the old registration id after some time?
- Please suggest me how to handle this situation?