iOS - update new API

1.添加检测用户通知设置的 API
This commit is contained in:
E.B
2016-07-12 11:16:58 +08:00
parent c6b8a6f2f6
commit 0bb6838477
3 changed files with 22 additions and 0 deletions

View File

@@ -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") {