mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-01-28 00:00:03 +08:00
add open notificaiton event when app run background
This commit is contained in:
@@ -27,15 +27,14 @@
|
||||
}
|
||||
}
|
||||
var onOpenNotification = function(event){
|
||||
try{
|
||||
var alert = event.alert;
|
||||
var extras = event.extras;
|
||||
console.log(alert);
|
||||
//console.log(extras);
|
||||
}
|
||||
catch(exeption){
|
||||
console.log(exception)
|
||||
}
|
||||
try{
|
||||
|
||||
var alert = event.aps.alert;
|
||||
console.log("JPushPlugin:onPpenNotification key aps.alert:"+alert);
|
||||
}
|
||||
catch(exception){
|
||||
console.log("JPushPlugin:onPpenNotification"+exception);
|
||||
}
|
||||
}
|
||||
var onReceiveNotification = function(event){
|
||||
try{
|
||||
|
||||
Reference in New Issue
Block a user