Skip to content

Commit 61f19f4

Browse files
Update APIs.md
1 parent b1fba2c commit 61f19f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

documents/APIs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ JPush jpush = new JPush();
182182
jpush.clearAllNotifications();
183183
```
184184

185+
**iOS Only**
185186
#### applyPushAuthority
186187

187188
申请推送权限,注意这个方法只会向用户弹出一次推送权限请求(如果用户不同意,之后只能用户到设置页面里面勾选相应权限),需要开发者选择合适的时机调用。
@@ -198,7 +199,7 @@ jpush.applyPushAuthority(new NotificationSettingsIOS(
198199

199200
#### setBadge
200201

201-
**iOS Only **
202+
202203

203204
设置应用 badge 值,该方法还会同步 JPush 服务器的的 badge 值,JPush 服务器的 badge 值用于推送 badge 自动 +1 时会用到。
204205

0 commit comments

Comments
 (0)