我認爲你需要,一旦你註冊的錯誤代碼從數據庫中刪除設備ID。
Unregistered Device
An existing registration ID may cease to be valid in a number of scenarios, including:
If the application manually unregisters by issuing a com.google.android.c2dm.intent.UNREGISTER intent.
If the application is automatically unregistered, which can happen (but is not guaranteed) if the user uninstalls the application.
If the registration ID expires. Google might decide to refresh registration IDs.
If the application is updated but the new version does not have a broadcast receiver configured to receive com.google.android.c2dm.intent.RECEIVE intents.
For all these cases, you should remove this registration ID from the 3rd-party server and stop using it to send messages.
Happens when error code is NotRegistered.
我建議你來處理錯誤代碼,當您將消息發送到一個設備。
http://developer.android.com/google/gcm/gcm.html
請仔細閱讀第三方服務器的角色。你會得到更多的細節。
感謝。我想我應該使用本機設備ID來緩解這一點。 http://stackoverflow.com/questions/15744807/gcm-device-registration-issue-in-android – user2293609 2013-04-18 06:21:25