我已经使用deviceId,apiKey和senderId完成了服务器端编码.我可以知道为什么我仍然得到这个“无效注册”? 检查客户端生成的注册ID.似乎客户端和服务器端的注册ID不匹配. 这是GCM page的解释
这是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.