delete callback not used

This commit is contained in:
zhangqinghe 2014-07-24 16:41:42 +08:00
parent 8e0fee7276
commit 992246235d
3 changed files with 5 additions and 18 deletions

View File

@ -40,7 +40,6 @@
window.plugins.jPushPlugin.getRegistrationID(onGetRegistradionID); window.plugins.jPushPlugin.getRegistrationID(onGetRegistradionID);
//test android interface //test android interface
//window.plugins.jPushPlugin.getNotification(onNotification);
//window.plugins.jPushPlugin.stopPush() //window.plugins.jPushPlugin.stopPush()
//window.plugins.jPushPlugin.resumePush(); //window.plugins.jPushPlugin.resumePush();
//window.plugins.jPushPlugin.clearAllNoticication(); //window.plugins.jPushPlugin.clearAllNoticication();
@ -48,7 +47,7 @@
//window.plugins.jPushPlugin.stopPush(); //window.plugins.jPushPlugin.stopPush();
//window.plugins.jPushPlugin.isPushStopped(onIsPushStopped); //window.plugins.jPushPlugin.isPushStopped(onIsPushStopped);
//window.plugins.jPushPlugin.init(); //window.plugins.jPushPlugin.init();
//window.plugins.jPushPlugin.setDebugable(true); //window.plugins.jPushPlugin.setDebugMode(true);
//window.plugins.jPushPlugin.startLogPageView("mianPage"); //window.plugins.jPushPlugin.startLogPageView("mianPage");
$("#setTagWithAliasButton").click(function(ev) { $("#setTagWithAliasButton").click(function(ev) {
@ -87,11 +86,6 @@
<body> <body>
<div data-role="page" id="page"> <div data-role="page" id="page">
<div data-role="header" class="ui-bar ui-bar-b">
<center>
<img border="0" src="img/logo.png" alt="Urban Airship" align="center" />
</center>
</div>
<div data-role="content"> <div data-role="content">
<form> <form>
<div class="ui-body ui-body-b"> <div class="ui-body ui-body-b">

View File

@ -140,7 +140,7 @@ public class JPushPlugin extends CordovaPlugin {
void init(JSONArray data,CallbackContext callbackContext){ void init(JSONArray data,CallbackContext callbackContext){
JPushInterface.init(this.cordova.getActivity().getApplicationContext()); JPushInterface.init(this.cordova.getActivity().getApplicationContext());
callbackContext.success(); //callbackContext.success();
} }
void setDebugMode(JSONArray data, CallbackContext callbackContext) { void setDebugMode(JSONArray data, CallbackContext callbackContext) {
@ -314,7 +314,7 @@ public class JPushPlugin extends CordovaPlugin {
} catch (JSONException e) { } catch (JSONException e) {
e.printStackTrace(); e.printStackTrace();
} }
callbackContext.success(obj); //callbackContext.success(obj);
} }
void setCustomPushNotificationBuilder(JSONArray data, void setCustomPushNotificationBuilder(JSONArray data,
@ -331,13 +331,13 @@ public class JPushPlugin extends CordovaPlugin {
} catch (JSONException e) { } catch (JSONException e) {
e.printStackTrace(); e.printStackTrace();
} }
callbackContext.success(obj); //callbackContext.success(obj);
} }
void clearAllNotification(JSONArray data, void clearAllNotification(JSONArray data,
CallbackContext callbackContext){ CallbackContext callbackContext){
JPushInterface.clearAllNotifications(this.cordova.getActivity()); JPushInterface.clearAllNotifications(this.cordova.getActivity());
callbackContext.success(); //callbackContext.success();
} }
void clearNotificationById(JSONArray data, void clearNotificationById(JSONArray data,

View File

@ -128,13 +128,6 @@ JPushPlugin.prototype.openNotificationInAndroidCallback = function(data){
} }
//android single //android single
JPushPlugin.prototype.getNotification = function (callback) {
if(device.platform == "Android") {
data=[];
this.call_native("getNotification",data,callback);
}
}
JPushPlugin.prototype.setBasicPushNotificationBuilder = function(){ JPushPlugin.prototype.setBasicPushNotificationBuilder = function(){
if(device.platform == "Android") { if(device.platform == "Android") {
data=[] data=[]