mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-01-28 00:00:03 +08:00
add jpush.receiveNotificaiton event in platform android
This commit is contained in:
@@ -54,16 +54,9 @@
|
||||
}
|
||||
var onReceiveNotification = function(event){
|
||||
try{
|
||||
|
||||
var eventContent="{";
|
||||
for(var key in event){
|
||||
if(key=="type"){
|
||||
break
|
||||
}
|
||||
eventContent+=key+":"+JSON.stringify(event[key])+"\n"
|
||||
}
|
||||
eventContent+="}";
|
||||
$("#notificationResult").html(eventContent);
|
||||
|
||||
var alert = window.plugins.jPushPlugin.receiveNotification.alert;
|
||||
$("#notificationResult").html(alert);
|
||||
|
||||
}
|
||||
catch(exeption){
|
||||
|
||||
Reference in New Issue
Block a user