Skip to content

Commit abb4b64

Browse files
committed
更新JPush版本为v4.8.5
1 parent 00599ca commit abb4b64

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

doc/Android_detail_api.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,37 @@ window.JPush.setBadgeNumber(badgeNumb)
260260

261261
#### 参数说明
262262

263-
- badgeNumb: 角标显示数字,小于或等0,角标显示数字清楚
263+
- badgeNumb: 角标显示数字,小于或等0,角标显示数字清楚
264+
265+
### API - setAuth
266+
267+
设置用户是否同意隐私协议
268+
269+
#### 接口定义
270+
271+
```js
272+
window.JPush.setAuth(isAuth)
273+
```
274+
275+
#### 参数说明
276+
277+
- isAuth: 是否同意隐私协议,true 已同意;false未同意
278+
279+
#### 调用逻辑
280+
281+
- 宿主 APP 在首次安装,冷启动
282+
- 用户隐私协议告知
283+
- 用户确认授权
284+
- 告知极光授权结果
285+
286+
同意隐私协议:
287+
288+
```js
289+
window.JPush.setAuth(true)
290+
```
291+
292+
不同意隐私协议:
293+
294+
```js
295+
window.JPush.setAuth(false)
296+
```

example/css/.DS_Store

-6 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jpush-phonegap-plugin",
3-
"version": "3.8.6",
3+
"version": "4.8.5",
44
"description": "JPush for cordova plugin",
55
"cordova": {
66
"id": "jpush-phonegap-plugin",
-703 KB
Binary file not shown.

www/JPushPlugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ JPushPlugin.prototype.setBadgeNumber = function(badgeNumb) {
482482
}
483483
};
484484

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

0 commit comments

Comments
 (0)