1
我正在使用我的离子应用程序phonegap-plugin-push注册并接收通知。 它在Android上完美运行,但注册事件不在iOS上抛出。phonegap推送插件不会在iOS上注册注册事件
的问题是,我可以看到设备正在注册的推送通知:
00:00 4/Notify: Push Plugin register called
00:00 4/Notify: Push Plugin register success: <d4fab0e8 85074aa2 f3a33a85 d32a373f f3b5e4f6 bb94aecb 9fe3732d 77eb5c14>
但“注册”事件永远不会在我的应用程序调用。
// Initialize push notifications for iOs and Android
var pushObj = PushNotification.init({
"android": {"senderID": Constants.ANDROIDSENDERID},
"ios": {"alert": "true", "badge": "true", "sound": "true"}, "windows": {}
});
console.log('add listener push registration');
// handle push notifications
pushObj.on('registration', function (data) {
console.log('registration successful');
}
“注册成功”日志消息是在Android上编写的,但不是在iOS上编写的。 我一直被困在这个问题上一天了。 有没有人知道这个问题的解决方案(或可能的解决方案)?
同样的问题在这里! – Anand
检查p12和配置证书配置是否正确,并确保您已在您的Apple帐户上激活推送通知服务。 – Anand