更新JPush版本为v4.8.5

This commit is contained in:
李良喜
2022-12-23 16:56:39 +08:00
parent 00599ca0bc
commit abb4b6432b
5 changed files with 36 additions and 2 deletions

View File

@@ -260,4 +260,37 @@ window.JPush.setBadgeNumber(badgeNumb)
#### 参数说明
- badgeNumb: 角标显示数字小于或等0角标显示数字清楚
- badgeNumb: 角标显示数字小于或等0角标显示数字清楚
### API - setAuth
设置用户是否同意隐私协议
#### 接口定义
```js
window.JPush.setAuth(isAuth)
```
#### 参数说明
- isAuth: 是否同意隐私协议true 已同意false未同意
#### 调用逻辑
- 宿主 APP 在首次安装,冷启动
- 用户隐私协议告知
- 用户确认授权
- 告知极光授权结果
同意隐私协议:
```js
window.JPush.setAuth(true)
```
不同意隐私协议:
```js
window.JPush.setAuth(false)
```