【问题标题】:Worklight Push Notification ExampleWorklight 推送通知示例
【发布时间】:2015-01-13 09:27:10
【问题描述】:

我正在尝试为 IBM 提供的混合应用程序实现推送通知示例,但出现以下注册错误。 GCM API KEY 和 PROJECT ID 在 application-descriptor.XML 中正确设置。

我在我的 Nexus 5 (Android 4.2.2) 中部署了使用分发证书签名的 APK,但它还不能工作。

有人可以帮助我吗?我正在使用 Worklight Studio 6.2

谢谢。

GCMRegistrar(29967):重置 com.PushNotifications 的退避 GCMRegistrar(29967):注册应用程序 com.PushNotifications 的发件人 testpushgcmproject GCM(1431): GCM 配置加载 GCMBroadcastReceiver(29967): onReceive: com.google.android.c2dm.intent.REGISTRATION GCMBroadcastReceiver(29967):GCM IntentService 类: com.PushNotifications.GCMIntentService GCMBaseIntentService(29967): 获取唤醒锁 GCMBaseIntentService(29967): Intent 服务名称: GCMIntentService-DynamicSenderIds-2 GCMBaseIntentService(29967): handleRegistration:registrationId = null,error = INVALID_SENDER, 未注册 = null GCMBaseIntentService(29967):注册错误: INVALID_SENDER GCMBaseIntentService(29967): 释放唤醒锁

【问题讨论】:

    标签: android ibm-mobilefirst push


    【解决方案1】:

    SENDER_ID = 项目编号,可能是您使用了错误的 SENDER_ID,例如项目 ID.. 项目编号在项目 ID 旁边的控制台上可用。

    【讨论】:

      【解决方案2】:

      您需要使用项目编号。访问你的GCM“项目”后就可以看到了:

      【讨论】:

        猜你喜欢
        • 2023-03-21
        • 2013-03-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多