mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-01-28 00:00:03 +08:00
fix local notification event in ios 10
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user