Google may periodically refresh the registration ID?

423 views
Skip to first unread message

rainbow

unread,
Sep 25, 2012, 10:10:16 AM9/25/12
to andro...@googlegroups.com

hi,
    the help document indicates that Google may periodically refresh the registration ID, when does this happen?  does it mean Google will automatically update the RegID, after the app register successfully?
   Thanks;

flyingbag

unread,
Sep 25, 2012, 11:22:16 PM9/25/12
to andro...@googlegroups.com
Yes, so your app should be able to handle the registration even in case google refreshes the ID. This way your app can then store the new id on your application server

Marc Otte

unread,
Sep 26, 2012, 3:59:21 AM9/26/12
to andro...@googlegroups.com
Hello,

first of all my english isnt the best one.
what happens when google refresh the id? did google delete it from their database or did google create a new one. have my app to store the new id in my application server? or did google talk via response to the application server? i read something about canonical id ... but i dont understood this ...

regards
marc

Hongbo Fu

unread,
Sep 26, 2012, 10:07:36 AM9/26/12
to andro...@googlegroups.com
hi,
    as far as i know, canonical id is used to deal with the case that a bug results to many RegIDs saved on the device when the app is running; but the regID saved in the server side is not the same as the one in the GCM server, so GCM use canonical id mechanism to deal with this situation.
    but i don't know how the relation between canonical id and the RegIDs is saved in the GCM server.

2012/9/26 Marc Otte <dev.ma...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-gcm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/android-gcm/-/B20qVhXVKcUJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nasif

unread,
Sep 26, 2012, 12:51:10 PM9/26/12
to andro...@googlegroups.com
After u are getting registration ID also google cloud servers will refresh the I'd of ur device and it will send it ur device in ur registered broadcast receivers

It is ur duty to refresh ur third party servers in the background


Sent from my iPod
--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-gcm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/android-gcm/-/yGRQToFWpb8J.

flyingbag

unread,
Sep 27, 2012, 3:50:45 AM9/27/12
to andro...@googlegroups.com
Hello Marc,
When Google Refresh the ID - we do not know what happens on their (GCM) side. Since you get a new ID  - the App needs to store the new ID in your app server.
Google GCM server does not directly talk to your app server.

Canonical ID will only be used if your app does multiple registrations for the same device leaving the registration state on GCM in a messed up condition. I do *NOT* think you need to worry about this - as long as you handle the registration process in your app correctly.
Reply all
Reply to author
Forward
0 new messages