Reputation: 10589
Today I tried to get a registration_id from gcm services. It worked fine. But every time when I uninstall my app (that includes deleting all shared preferences for that app) and reinstalled the app to get a new registration_id, I got the exact same registration_id. That happened now 5 times so I guess there is something wrong. Or is that normal?
Upvotes: 0
Views: 53
Reputation: 393831
That's normal. GCM usually doesn't generate a new Registration ID for the same application and the same device.
The only way I managed to get a new Registration ID for the same app and the same device was to uninstall the app, send several messages to the old Registration ID until I got a NotRegistered error, and only then install the app again.
Upvotes: 1