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