File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed
Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 33* [ Common API] ( #common-api )
44 * [ getRegistrationID] ( #getregistrationid )
55 * [ stopPush] ( #stoppush )
6+ * [ resumePush] ( #resumepush )
67 * [ setAlias] ( #setalias )
78 * [ addTags] ( #addtags )
89 * [ setTags] ( #settags )
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.
6161JPushModule.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
6680set 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.
You can’t perform that action at this time.
0 commit comments