diff --git a/example/index.html b/example/index.html index 6d51792..6791637 100644 --- a/example/index.html +++ b/example/index.html @@ -95,7 +95,6 @@ }; var initiateUI = function () { - try { window.plugins.jPushPlugin.init(); getRegistrationID(); diff --git a/src/android/JPushPlugin.java b/src/android/JPushPlugin.java index 035226b..bfce837 100644 --- a/src/android/JPushPlugin.java +++ b/src/android/JPushPlugin.java @@ -68,7 +68,7 @@ public class JPushPlugin extends CordovaPlugin { private static String TAG = "JPushPlugin"; private static boolean shouldCacheMsg = false; - private static boolean isStatisticsOpened = true; // 是否开启统计分析功能 + private static boolean isStatisticsOpened = false; // 是否开启统计分析功能 public static String notificationAlert; public static Map notificationExtras = new HashMap();