C2DM registration ID refresh

by David C » Tue, 25 Jan 2011 02:53:14 GMT


Sponsored Links
 In the C2DM documentation (Android Cloud to Device Messaging Framework
- Google Projects for Android), it mentions that:

Note that Google may periodically refresh the registration ID, so you
should design your application with the understanding that the
REGISTRATION Intent may be called multiple times. Your application
needs to be able to respond accordingly.

Does this mean an Android application will be notified through the
REGISTRATION Intent when C2DM server refreshes the registration ID?
Then the application can send the new ID to the application server?

Or the application server will only find out the registration ID is no
longer valid when it tries to send a message through the C2DM server.

Thanks.

David.

--