Skip to content

Commit 5244f6f

Browse files
committed
update docs
1 parent 1d86110 commit 5244f6f

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

documents/api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ JPushModule.stopPush();
6666
恢复推送。建议在 `MainActivity``onResume` 中调用:
6767

6868
```
69+
// android native java
6970
JPushInterface.onResume(this);
7071
```
72+
73+
```
74+
// iOS - javascirpt
75+
JPushModule.resumePush();
76+
```
7177

7278
#### setAlias
7379

documents/api_en.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* [Common API](#common-api)
44
* [getRegistrationID](#getregistrationid)
55
* [stopPush](#stoppush)
6+
* [resumePush](#resumepush)
67
* [setAlias](#setalias)
78
* [addTags](#addtags)
89
* [setTags](#settags)
@@ -24,7 +25,6 @@
2425
* [Network Did Login Event](#network-did-login-event)
2526
* [Android Only API](#android-only-api)
2627
* [initPush](#initpush)
27-
* [resumePush](#resumepush)
2828
* [crashLogOFF](#crashlogoff)
2929
* [crashLogON](#crashlogon)
3030
* [notifyJSDidLoad](#notifyjsdidload)
@@ -61,6 +61,20 @@ Stop push.
6161
JPushModule.stopPush();
6262
```
6363

64+
* #### resumePush
65+
66+
Resume push. Suggest invokes in `MainActivity` 's `onResume` method:
67+
68+
```
69+
// android native java
70+
JPushInterface.onResume(this);
71+
```
72+
73+
```
74+
// iOS - javascirpt
75+
JPushModule.resumePush();
76+
```
77+
6478
#### setAlias
6579

6680
set device's application alias, you can push notificaiton with alias, every device can only have one alias.
@@ -330,14 +344,6 @@ JPushModule.getLaunchAppNotification( notification => {
330344
JPushInterface.init(this);
331345
```
332346

333-
* #### resumePush
334-
335-
Resume push. Suggest invokes in `MainActivity` 's `onResume` method:
336-
337-
```
338-
JPushInterface.onResume(this);
339-
```
340-
341347
* #### crashLogOFF
342348

343349
Stop upload crash log.

0 commit comments

Comments
 (0)