cordova - 为什么使用 GCM 无效 RegistraitonID - 使用 phonegap for android?

标签 cordova google-cloud-messaging

我已经使用设备 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/

相关文章:

javascript - 服务 worker js 中的 Fetch() 无法发送请求 header ?

cordova - 在运行时动态更改 Ionic Cordova TabRoot

javascript - 如何在javascript中将字节数组转换为图像

ios - cordova/phonegap应用,加载时屏幕跳约15px

cordova - 收到错误消息 "Registering a component with a id (` form 1`) which has already been used"

javascript - 带有使用摄像头的托管 Web 应用程序的 Cordova

IOS:通知只显示交叉按钮不显示类别使用 GCM

java - 无法解释来自 GCM 的消息

android - GCM 注册 : SERVICE NOT AVAILABLE on mobile network

android - 如何在应用程序中打开 mainactivity 的 webview,当收到通知时