Skip to content

Commit dcd5d83

Browse files
committed
update doc
1 parent da9b7de commit dcd5d83

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

documents/api.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* [getLaunchAppNotification](#getlaunchappnotification)
2525
* [点击推送启动应用事件](#open-notification-launch-app-event)
2626
* [网络成功登陆事件](#network-did-login-event)
27+
* [hasPermission](#haspermission)
2728
* [Android Only API](#android-only-api)
2829
* [crashLogOFF](#crashlogoff)
2930
* [crashLogON](#crashlogno)
@@ -336,6 +337,16 @@ JPushModule.getLaunchAppNotification( notification => {
336337
})
337338
```
338339

340+
#### hasPermission
341+
342+
获取应用是否有推送权限。
343+
344+
```
345+
JPushModule.hasPermission( res => {
346+
// res = boolen
347+
})
348+
```
349+
339350
#### 点击推送启动应用事件
340351

341352
**NOTE**: iOS 需要安装到 [email protected]+ 。

0 commit comments

Comments
 (0)