Merge branch 'dev'

This commit is contained in:
Hevin
2017-11-03 17:38:08 +08:00
+3 -9
View File
@@ -400,7 +400,7 @@ window.JPush.checkTagBindState({ sequence: 1, tag: 'tag1' },
### event - jpush.openNotification ### event - jpush.openNotification
点击通知进入应用程序时会出发改事件 点击通知进入应用程序时触发
#### 代码示例 #### 代码示例
@@ -417,8 +417,6 @@ document.addEventListener("jpush.openNotification", function (event) {
}, false) }, false)
``` ```
> ps:点击通知后传递的 json object 保存在 window.JPush.openNotification,直接访问即可,字段示例,根据实际推送情况,可能略有差别,请注意。
- Android: - Android:
```json ```json
@@ -457,7 +455,7 @@ document.addEventListener("jpush.openNotification", function (event) {
### event - jpush.receiveNotification ### event - jpush.receiveNotification
收到通知时触发该事件 收到通知时触发。
#### 代码示例 #### 代码示例
@@ -475,8 +473,6 @@ document.addEventListener("jpush.receiveNotification", function (event) {
}, false) }, false)
``` ```
> ps:点击通知后传递的 json object 保存在 window.JPush.receiveNotification,直接访问即可,字段示例,根据实际推送情况,可能略有差别,请注意。
- Android: - Android:
```json ```json
@@ -515,7 +511,7 @@ document.addEventListener("jpush.receiveNotification", function (event) {
### event - jpush.receiveMessage ### event - jpush.receiveMessage
收到自定义消息时触发这个事件,推荐使用事件的方式传递。 收到自定义消息时触发,推荐使用事件的方式传递。
但同时保留了 `receiveMessageIniOSCallback` 的回调函数,兼容以前的代码。 但同时保留了 `receiveMessageIniOSCallback` 的回调函数,兼容以前的代码。
@@ -534,8 +530,6 @@ document.addEventListener("jpush.receiveMessage", function (event) {
}, false) }, false)
``` ```
> ps:点击通知后传递的 json object 保存在 window.JPush.receiveMessage,直接访问即可,字段示例,根据实际推送情况,可能略有差别,请注意。
- Android: - Android:
```json ```json