【问题标题】:GCM and GenericPush (Phonegap plugin) not workingGCM 和 GenericPush(Phonegap 插件)不工作
【发布时间】:2013-06-18 07:27:09
【问题描述】:

我已经能够在设备上生成一个注册 ID,但是为了发送推送通知,我必须获得一个 API 密钥,所以我从 Google Api 控制台获得了一个,但它不起作用。我尝试使用 PushSharp 和一些 Ruby 脚本发送 GCM。我在调用该方法时使用了正确的项目 ID。

pushNotification.register(successHandler, errorHandler, { "senderID": "my_project_id", "ecb": "onNotificationGCM" });

我错过了什么,任何配置?例如,带有此插件的 iOS APNS 需要分发证书而不是开发证书。可能是类似的问题。

【问题讨论】:

  • 你在服务器端收到任何错误响应吗?

标签: android cordova push-notification google-cloud-messaging


【解决方案1】:

我不得不在我的 Android 设备上按下一个名为“同步帐户”的按钮,突然我收到了很多推送通知。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多