问题
I read in the explanation in Android Cloud to Device Messaging Framework. After our app register successfully to C2DM server, we receive a registration ID. The registration ID lasts until the application explicitly unregisters itself, or until Google refreshes the registration ID for your application. When is exactly Google refreshes the registration ID for your application?? How do we know it so we can register again and send our new registration ID to our server.
Thank you.
回答1:
According to discussions on the android-c2dm mailing list, refreshing the registration ID is not a frequent event, but your application should be able to handle it. The OS will fire the registration Intent
again with the new registration ID.
See the following threads on Google Groups: [1] [2] [3]
来源:https://stackoverflow.com/questions/4265514/android-c2dm-registration-id