mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
iOS 更新到6.0.0,安卓更新到6.0.1版本。iOS SDK 换成cocoapods集成,安卓 SDK换成marven集成。插件版本改成6.0.1
This commit is contained in:
@@ -82,6 +82,14 @@ JPushPlugin.prototype.isPushStopped = function(successCallback) {
|
||||
this.callNative("isPushStopped", [], successCallback);
|
||||
};
|
||||
|
||||
/**
|
||||
* 检查推送是否被停止(推荐,SDK 6.0+ 新增接口,替代 isPushStopped)
|
||||
* @param successCallback 回调 (result) => {},result 为 { code: number, isStopped: 0|1 },code 为 0 表示成功,isStopped 为 1 表示已停止
|
||||
*/
|
||||
JPushPlugin.prototype.getPushStatus = function(successCallback) {
|
||||
this.callNative("getPushStatus", [], successCallback);
|
||||
};
|
||||
|
||||
JPushPlugin.prototype.clearLocalNotifications = function() {
|
||||
if (device.platform === "Android") {
|
||||
this.callNative("clearLocalNotifications", [], null);
|
||||
|
||||
Reference in New Issue
Block a user