fix tortuous

This commit is contained in:
darkterrorooo 2015-12-09 18:27:08 +08:00
parent 42d64ca2f0
commit a3ad96f786
2 changed files with 6 additions and 4 deletions

View File

@ -54,13 +54,13 @@
}
var onReceiveNotification = function(event){
try{
var alert
var alertContent
if(device.platform == "Android"){
alert = window.plugins.jPushPlugin.receiveNotification.alert;
alertContent = window.plugins.jPushPlugin.receiveNotification.alert;
}else{
alert = event.aps.alert;
alertContent = event.aps.alert;
}
$("#notificationResult").html(alert);
$("#notificationResult").html(alertContent);
}
catch(exeption){

View File

@ -26,6 +26,8 @@ import cn.jpush.android.api.CustomPushNotificationBuilder;
import cn.jpush.android.api.JPushInterface;
import cn.jpush.android.data.JPushLocalNotification;
import cn.jpush.android.api.TagAliasCallback;
import android.util.Log;
public class JPushPlugin extends CordovaPlugin {
private final static List<String> methodList =