Registration

145 views
Skip to first unread message

Pintac

unread,
Aug 10, 2010, 5:35:31 AM8/10/10
to android-c2dm
Hi

One question i want to ask. In the documentation it specifies that
'The C2DM server periodically refreshes registration IDs'. Now who
will get notified about the change or will the next send to
registration id(old one) just be invalid.

If so is it not better to register every time app starts so the
changing of registration id will not affect the sending(to much) or
will Google start blacklisting apps that registers too much.

Thomas Riley

unread,
Aug 10, 2010, 5:43:09 AM8/10/10
to android-c2dm
No, don't register every time.

When Google renews the registrationID it will fire the registration
intent again in your C2DM Receiver. Therefore the code in the C2DM
receiver in your application that sends the registrationID to your 3rd
party server will send the fresh registrationID to your server.

Pintac

unread,
Aug 11, 2010, 3:18:37 AM8/11/10
to android-c2dm
Cool thanks

Costin Manolache

unread,
Aug 11, 2010, 10:11:54 AM8/11/10
to androi...@googlegroups.com
I should mention that the 'renewal' from google is not a common event, it'll happen
if there is a backward-incompatible change to the registration key format or other special 
cases - but you should implement this corner case and refresh your server, or your
app will be broken when/if this happens.

Costin
Reply all
Reply to author
Forward
0 new messages