标签: ionic-framework push-notification google-cloud-messaging
我正在尝试离子推送通知,我在浏览器中获得了设备令牌,但我忘记了手机中没有设备令牌。
我收到了这个错误
请帮忙。
答案 0 :(得分:1)
根据此forum,您的Google帐户可能存在问题。试试这些:
另请注意,GCM仅适用于运行Android 2.2或更高版本的设备。此外,GCM仅在为设备安装了Google帐户时才有效。这就是Google建议在清单中使用<uses-permission android:name="android.permission.GET_ACCOUNTS" />的原因,因此您确定该设备具有Google帐户。
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
选中link。