First let me explain my scenario:
[Android App]
When it start, it send the regID (for push notifications) to our server (in php)
[SERVER]
In the server I have a list like:
Android Name: john
ID: 9012903482190381290839012839012890-dfs-234--23431243124
..
Android Name: james
ID: 901fdsfdsfdsfdsfert545tertert12890-dfs-234--23431243124
PROBLEM: When I update the app, the gogole cloud generates a new regID for the same device, and I have to check in the server if that user exist (but maybe there are another user with the same name) and replace the ID.
1-There is a way to conserve the ID for the same device in android? (like in iOS)
2-There is a way to know the old redID (ID for push notification) in the new app update?
Thanks for your time.
Joan