mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
iOS - update new API
1.添加检测用户通知设置的 API
This commit is contained in:
@@ -210,6 +210,12 @@ JPushPlugin.prototype.getApplicationIconBadgeNumber = function(callback) {
|
||||
}
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.getUserNotificationSettings = function(callback) {
|
||||
if(this.isPlatformIOS()) {
|
||||
this.call_native("getUserNotificationSettings", [], callback);
|
||||
}
|
||||
}
|
||||
|
||||
// Android methods
|
||||
JPushPlugin.prototype.setDebugMode = function(mode) {
|
||||
if(device.platform == "Android") {
|
||||
|
||||
Reference in New Issue
Block a user