mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-31 22:42:51 +08:00
fix tortuous
This commit is contained in:
parent
42d64ca2f0
commit
a3ad96f786
@ -54,13 +54,13 @@
|
|||||||
}
|
}
|
||||||
var onReceiveNotification = function(event){
|
var onReceiveNotification = function(event){
|
||||||
try{
|
try{
|
||||||
var alert
|
var alertContent
|
||||||
if(device.platform == "Android"){
|
if(device.platform == "Android"){
|
||||||
alert = window.plugins.jPushPlugin.receiveNotification.alert;
|
alertContent = window.plugins.jPushPlugin.receiveNotification.alert;
|
||||||
}else{
|
}else{
|
||||||
alert = event.aps.alert;
|
alertContent = event.aps.alert;
|
||||||
}
|
}
|
||||||
$("#notificationResult").html(alert);
|
$("#notificationResult").html(alertContent);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(exeption){
|
catch(exeption){
|
||||||
|
@ -26,6 +26,8 @@ import cn.jpush.android.api.CustomPushNotificationBuilder;
|
|||||||
import cn.jpush.android.api.JPushInterface;
|
import cn.jpush.android.api.JPushInterface;
|
||||||
import cn.jpush.android.data.JPushLocalNotification;
|
import cn.jpush.android.data.JPushLocalNotification;
|
||||||
import cn.jpush.android.api.TagAliasCallback;
|
import cn.jpush.android.api.TagAliasCallback;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
|
|
||||||
public class JPushPlugin extends CordovaPlugin {
|
public class JPushPlugin extends CordovaPlugin {
|
||||||
private final static List<String> methodList =
|
private final static List<String> methodList =
|
||||||
|
Loading…
Reference in New Issue
Block a user