mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-31 14:32:51 +08:00
delete callback not used
This commit is contained in:
parent
8e0fee7276
commit
992246235d
@ -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 @@
|
||||
<body>
|
||||
<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">
|
||||
<form>
|
||||
<div class="ui-body ui-body-b">
|
||||
|
@ -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,
|
||||
|
@ -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=[]
|
||||
|
Loading…
Reference in New Issue
Block a user