mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-01-28 00:00:03 +08:00
修改关于jpush.receiveNotification的文档,并删除旧有说明
This commit is contained in:
@@ -54,8 +54,12 @@
|
||||
}
|
||||
var onReceiveNotification = function(event){
|
||||
try{
|
||||
|
||||
var alert = window.plugins.jPushPlugin.receiveNotification.alert;
|
||||
var alert
|
||||
if(device.platform == "Android"){
|
||||
alert = window.plugins.jPushPlugin.receiveNotification.alert;
|
||||
}else{
|
||||
alert = event.aps.alert;
|
||||
}
|
||||
$("#notificationResult").html(alert);
|
||||
|
||||
}
|
||||
@@ -65,9 +69,15 @@
|
||||
}
|
||||
var onReceiveMessage = function(event){
|
||||
try{
|
||||
var message = window.plugins.jPushPlugin.receiveMessage.message;
|
||||
|
||||
var message
|
||||
if(device.platform == "Android"){
|
||||
message = window.plugins.jPushPlugin.receiveMessage.message;
|
||||
}else{
|
||||
message = event.content;
|
||||
}
|
||||
//var extras = window.plugins.jPushPlugin.extras
|
||||
|
||||
|
||||
$("#messageResult").html(message);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user