fix local notification event in ios 10

This commit is contained in:
huangminlinux
2017-12-12 17:00:28 +08:00
parent 9ea65add1f
commit f50a8ea5c7
2 changed files with 32 additions and 12 deletions

View File

@@ -43,7 +43,7 @@ export class HomePage {
} else {
content = event.aps.alert;
}
console.log('Receive notification: ' + content);
alert('Receive notification: ' + JSON.stringify(event));
}, false);
document.addEventListener('jpush.openNotification', (event: any) => {
@@ -53,7 +53,8 @@ export class HomePage {
} else {
content = event.aps.alert;
}
alert('Open notification: ' + content);
// alert('Open notification: ' + content);
alert('open notification: ' + JSON.stringify(event));
}, false);
document.addEventListener('jpush.receiveLocalNotification', (event: any) => {