diff --git a/example/index.html b/example/index.html index b6dfac0..8702919 100644 --- a/example/index.html +++ b/example/index.html @@ -40,7 +40,6 @@ window.plugins.jPushPlugin.getRegistrationID(onGetRegistradionID); //test android interface - //window.plugins.jPushPlugin.getNotification(onNotification); //window.plugins.jPushPlugin.stopPush() //window.plugins.jPushPlugin.resumePush(); //window.plugins.jPushPlugin.clearAllNoticication(); @@ -48,7 +47,7 @@ //window.plugins.jPushPlugin.stopPush(); //window.plugins.jPushPlugin.isPushStopped(onIsPushStopped); //window.plugins.jPushPlugin.init(); - //window.plugins.jPushPlugin.setDebugable(true); + //window.plugins.jPushPlugin.setDebugMode(true); //window.plugins.jPushPlugin.startLogPageView("mianPage"); $("#setTagWithAliasButton").click(function(ev) { @@ -87,11 +86,6 @@
-
-
- Urban Airship -
-
diff --git a/src/android/JPushPlugin.java b/src/android/JPushPlugin.java index 458b472..d2ee1f2 100644 --- a/src/android/JPushPlugin.java +++ b/src/android/JPushPlugin.java @@ -140,7 +140,7 @@ public class JPushPlugin extends CordovaPlugin { void init(JSONArray data,CallbackContext callbackContext){ JPushInterface.init(this.cordova.getActivity().getApplicationContext()); - callbackContext.success(); + //callbackContext.success(); } void setDebugMode(JSONArray data, CallbackContext callbackContext) { @@ -314,7 +314,7 @@ public class JPushPlugin extends CordovaPlugin { } catch (JSONException e) { e.printStackTrace(); } - callbackContext.success(obj); + //callbackContext.success(obj); } void setCustomPushNotificationBuilder(JSONArray data, @@ -331,13 +331,13 @@ public class JPushPlugin extends CordovaPlugin { } catch (JSONException e) { e.printStackTrace(); } - callbackContext.success(obj); + //callbackContext.success(obj); } void clearAllNotification(JSONArray data, CallbackContext callbackContext){ JPushInterface.clearAllNotifications(this.cordova.getActivity()); - callbackContext.success(); + //callbackContext.success(); } void clearNotificationById(JSONArray data, diff --git a/www/JPushPlugin.js b/www/JPushPlugin.js index 07ac054..29c2a40 100644 --- a/www/JPushPlugin.js +++ b/www/JPushPlugin.js @@ -128,13 +128,6 @@ JPushPlugin.prototype.openNotificationInAndroidCallback = function(data){ } //android single -JPushPlugin.prototype.getNotification = function (callback) { - if(device.platform == "Android") { - data=[]; - this.call_native("getNotification",data,callback); - } -} - JPushPlugin.prototype.setBasicPushNotificationBuilder = function(){ if(device.platform == "Android") { data=[]