我已经使用设备 ID、api key 和发件人 ID 完成了服务器端编码。我可以知道为什么我仍然收到这个“无效注册”?
最佳答案
检查客户端生成的注册ID。客户端和服务器端的注册ID似乎不匹配。
以下是来自 GCM page 的解释.
Check the formatting of the registration ID that you pass to the server. Make sure it matches the registration ID the phone receives in the com.google.android.c2dm.intent.REGISTRATION intent and that you're not truncating it or adding additional characters. Happens when error code is InvalidRegistration.
关于cordova - 为什么使用 GCM 无效 RegistraitonID - 使用 phonegap for android?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12142261/