ionic3 iOS12监听收到消息jpush.receiveNotification需要点击才收的到
// 收到通知时会触发该事件
document.addEventListener('jpush.receiveNotification', event => {
const content = this.platform.is('mobile') && !this.platform.is('mobileweb') && (this.platform.is('ios') || this.platform.is('ipad') || this.platform.is('iphone')) ? event['aps'].alert : event['alert'];
console.log('jpush.receiveNotification' + content);
console.log("收到通知" + JSON.stringify(event));
}, false);
iOS12 上面监听收到通知的方法要点击通知才触发,用的 jpush-phonegap-plugin^3.3.2版本, @jiguang-ionic/jpush^1.0.2版本,