Skip to content

Commit

Permalink
更新JPush版本为v4.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zikko2017 committed Dec 23, 2022
1 parent 00599ca commit abb4b64
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
35 changes: 34 additions & 1 deletion doc/Android_detail_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
Binary file removed example/css/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jpush-phonegap-plugin",
"version": "3.8.6",
"version": "4.8.5",
"description": "JPush for cordova plugin",
"cordova": {
"id": "jpush-phonegap-plugin",
Expand Down
Binary file removed src/android/libs/jpush-android-4.8.1.jar
Binary file not shown.
1 change: 1 addition & 0 deletions www/JPushPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ JPushPlugin.prototype.setBadgeNumber = function(badgeNumb) {
}
};

//设备是否同意隐私协议
JPushPlugin.prototype.setAuth = function(isAuth){
if(device.platform === "Android"){
this.callNative("setAuth", [isAuth], null);
Expand Down

0 comments on commit abb4b64

Please sign in to comment.