add jpush.receiveNotificaiton event in platform android

This commit is contained in:
zhangqinghe
2015-06-09 15:48:51 +08:00
parent c90c9b7b01
commit c420ae20e5
4 changed files with 72 additions and 10 deletions

View File

@@ -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){