我试图为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
提前致谢。