PhoneGap推送插件未注册iOS 8设备 [英] PhoneGap Push Plugin Does Not Register iOS 8 Device
问题描述
该插件的版本为2.3.1,iOS 8.0,iPhone5。在iOS 8之前,一切正常。在2.0.5之前,我已对该插件进行了升级。调用寄存器时,既不会收到成功响应,也不会收到错误响应:
The plugin at version 2.3.1, iOS 8.0, iPhone 5. Everything worked find before iOS 8. I upgraded the plugin, before it was 2.0.5. Neither a success nor an error response is received when calling register:
window.plugins.pushNotification.register(
// tokenHandler (iOS ony) - called when the device has registeredwith a unique device token.
function (result) {
alert('device token = ' + result);
},
function(error) {
alert('error = ' + JSON.stringify(error));
},
{
"badge":"true",
"sound":"true",
"alert":"true",
"ecb":"onNotificationAPN"
}
);
推荐答案
查看github上的拉取请求。
Check out the pull requests on github.
https://github.com/phonegap-build / PushPlugin / pulls
其中包含许多iOS8修复程序。
There are lots of iOS8 Fixes included. It doesn't look like they are merged into the phonegap-build repository yet.
iOS8更改了它们注册和处理推送通知的方式,因此您需要进行一些代码更改。需要更新以支持iOS8。
iOS8 changed the way they register and handle push notifications so there are some code changes you will need to update to support iOS8.
这篇关于PhoneGap推送插件未注册iOS 8设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!