mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 05:22:57 +08:00
fix tortuous
This commit is contained in:
parent
42d64ca2f0
commit
a3ad96f786
@ -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){
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user