gpt4 book ai didi

ios - ionic ios推送:无法在缓存中找到 token 错误Domain = com.google.iid代码= -25300“(空)”

转载 作者:行者123 更新时间:2023-12-01 20:21:07 24 4
gpt4 key购买 nike

我正在尝试为ios设置推送通知,我正在使用ionic和phonegap-push-plugin。

这是conf:

var conf = {
android: {
senderID: "********************",
"icon": "icon",
"iconColor": "black"
},
ios: {
gcmSandbox: true,
senderID: "********************",
alert: "true",
badge: false,
sound: 'false'
},
windows: {}
};

我在iPhone 5上遇到了下一个错误:
2016-02-29 23:42:48.351 MDZOL[466:82778] active
2016-02-29 23:42:48.352 MDZOL[466:82778] PushPlugin skip clear badge
2016-02-29 23:42:48.696 MDZOL[466:82778] Resetting plugins due to page load.
2016-02-29 23:42:51.292 MDZOL[466:82778] Finished load of: file:///var/mobile/Containers/Bundle/Application/CFB8C8D3-FD5D-4710-A1FA-7480F82708D0/MDZOL.app/www/index.html#/tab/home
2016-02-29 23:42:51.820 MDZOL[466:82778] Ionic Core: plugins are ready
2016-02-29 23:42:51.829 MDZOL[466:82820] Push Plugin register called
2016-02-29 23:42:51.829 MDZOL[466:82820] PushPlugin.register: setting badge to false
2016-02-29 23:42:51.829 MDZOL[466:82820] PushPlugin.register: clear badge is set to 0
2016-02-29 23:42:51.830 MDZOL[466:82820] PushPlugin.register: better button setup
2016-02-29 23:42:51.830 MDZOL[466:82820] GCM Sender ID **************
2016-02-29 23:42:51.830 MDZOL[466:82820] Using GCM Notification
2016-02-29 23:42:51.831 MDZOL[466:82820] Using GCM Sandbox
2016-02-29 23:42:51.845 MDZOL[466:82778] Push Plugin register success: <dc52fb00 0aac3a80 7eac3d06 aeae102c ef905958 512c9252 937c6f7e dee26593>
2016-02-29 23:42:51.977: GGLInstanceID | Unable to find token in cache Error Domain=com.google.iid Code=-25300 "(null)"
2016-02-29 23:42:52.788 MDZOL[466:82778] Registration to GCM failed with error: The operation couldn’t be completed. (com.google.HTTPStatus error 401.)
2016-02-29 23:42:53.412 MDZOL[466:82778] Error
2016-02-29 23:42:53.413 MDZOL[466:82778] {"line":57,"column":54,"sourceURL":"file:///var/mobile/Containers/Bundle/Application/CFB8C8D3-FD5D-4710-A1FA-7480F82708D0/MDZOL.app/www/plugins/phonegap-plugin-push/www/push.js"}

我不使用swift,所以此堆栈不适用于我的问题: GCM in Swift Bundle ID Error

提前致谢。

最佳答案

我遇到了这个问题,并通过以下魔术链接将.p12文件添加到GCM中来解决了该问题:https://developers.google.com/mobile/add

关于ios - ionic ios推送:无法在缓存中找到 token 错误Domain = com.google.iid代码= -25300“(空)”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35713906/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com