diff --git a/src/android/JPushPlugin.java b/src/android/JPushPlugin.java index c910443..5d4b71e 100644 --- a/src/android/JPushPlugin.java +++ b/src/android/JPushPlugin.java @@ -80,6 +80,8 @@ public class JPushPlugin extends CordovaPlugin { shouldCacheMsg = false; + //如果同时缓存了打开事件openNotificationAlert 和 消息事件notificationAlert,只向UI 发 打开事件。 + //这样做是为了和iOS 统一 if(JPushPlugin.openNotificationAlert != null){ JPushPlugin.notificationAlert = null; JPushPlugin.transmitOpen(JPushPlugin.openNotificationAlert, JPushPlugin.openNotificationExtras);