Android的C2DM注册IDAndroid、C2DM、ID

2023-09-06 00:47:07 作者:单刀赴会

我看在Android的云到设备消息框架的解释。 经过我们的应用程序成功地注册到C2DM服务器,我们收到一个注册ID。注册ID会一直持续到应用程序显式注销本身,或者直到谷歌将刷新为您的应用程序的注册ID。当正是谷歌刷新注册ID为您的应用?我们怎么知道它,所以我们可以重新登记,并把我们的新注册ID到我们的服务器。

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.

感谢你。

推荐答案

按照Android的C2DM邮件列表上的讨论,刷新注册ID不是频发事件,但你的应用程序应该能够处理它。操作系统将触发注册意图再次用新注册的ID。

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.

请参阅在谷歌论坛以下主题: [1] [2] [3]

See the following threads on Google Groups: [1] [2] [3]