得到json异常电话注册错误

时间:2016-08-11 12:05:20

标签: ionic-framework push-notification google-cloud-messaging

我正在尝试离子推送通知,我在浏览器中获得了设备令牌,但我忘记了手机中没有设备令牌。

我收到了这个错误

enter image description here

请帮忙。

1 个答案:

答案 0 :(得分:1)

根据此forum,您的Google帐户可能存在问题。试试这些:

  • 转到设置 - >应用程序 - >管理应用程序 - >所有
  • 为“Google Play服务”和“Google服务框架”选择“清除数据”
  • 暂时取消您的Google帐户与手机的关联
  • 重新启动手机
  • 重新关联您的Google帐户

另请注意,GCM仅适用于运行Android 2.2或更高版本的设备。此外,GCM仅在为设备安装了Google帐户时才有效。这就是Google建议在清单中使用<uses-permission android:name="android.permission.GET_ACCOUNTS" />的原因,因此您确定该设备具有Google帐户。

选中link