1

Hi i'm working on notification push with Cordova/Ionic and i try to get the registration Id of the device (i tried with my phone and simulator) the problem is when the device ready being called the SuccessHandler return success 'Ok'but onNotificationGCM not being fired, my project id is correct and Google Cloud Messaging for Android api is activated in the google cloud console and Internet is also activated in my mobile and i have network access permission in my app android.permission.ACCESS_NETWORK_STATE

THANKS

4

3 回答 3

0

我有相同的症状,但显然是一个不同的问题。

检查您的senderIDis 实际上是您的 Google Project Number而不是您的Project ID。它应该只包含数字。

于 2014-06-08T13:59:45.473 回答
0

如果您像我一样使用 Cordova 3.1 并且无法重建 android 项目,您可以尝试此处提到的解决方案PushPlugin is not working after upgrade to cordova 3.1.0

于 2014-06-04T06:38:11.580 回答
0

这听起来很盲目,但今天发生在我身上,插件正在工作,突然停止工作。原来我的手机wifi被关闭了。对于遇到此问题的其他人。以下步骤应该有效。

如果您的手机已连接并且发现该应用程序应该在手机上运行,​​您将能够获得注册 ID。

于 2014-03-03T10:43:35.730 回答