jpush-phonegap-plugin
Advanced tools
Comparing version 3.8.6 to 4.8.5
@@ -263,2 +263,35 @@ # Android API 简介 | ||
- 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) | ||
``` |
@@ -0,0 +0,0 @@ # 通用 API 说明(同时适用于 Android 和 iOS 系统) |
@@ -0,0 +0,0 @@ # iOS API |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ import { Component } from '@angular/core'; |
@@ -0,0 +0,0 @@ import { BrowserModule } from '@angular/platform-browser'; |
@@ -0,0 +0,0 @@ import { Component } from "@angular/core"; |
@@ -0,0 +0,0 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; |
@@ -0,0 +0,0 @@ import { IonicNativePlugin } from '@ionic-native/core'; |
@@ -0,0 +0,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -0,0 +0,0 @@ import { IonicNativePlugin } from '@ionic-native/core'; |
@@ -0,0 +0,0 @@ var __extends = (this && this.__extends) || (function () { |
[{"__symbolic":"module","version":4,"metadata":{"TagOptions":{"__symbolic":"interface"},"AliasOptions":{"__symbolic":"interface"},"JPush":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":67,"character":27},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":64,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"functionName":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"setDebugMode":[{"__symbolic":"method"}],"getRegistrationID":[{"__symbolic":"method"}],"stopPush":[{"__symbolic":"method"}],"resumePush":[{"__symbolic":"method"}],"isPushStopped":[{"__symbolic":"method"}],"setTags":[{"__symbolic":"method"}],"addTags":[{"__symbolic":"method"}],"deleteTags":[{"__symbolic":"method"}],"cleanTags":[{"__symbolic":"method"}],"getAllTags":[{"__symbolic":"method"}],"checkTagBindState":[{"__symbolic":"method"}],"setAlias":[{"__symbolic":"method"}],"deleteAlias":[{"__symbolic":"method"}],"getAlias":[{"__symbolic":"method"}],"getUserNotificationSettings":[{"__symbolic":"method"}],"clearLocalNotifications":[{"__symbolic":"method"}],"setBadge":[{"__symbolic":"method"}],"resetBadge":[{"__symbolic":"method"}],"setApplicationIconBadgeNumber":[{"__symbolic":"method"}],"getApplicationIconBadgeNumber":[{"__symbolic":"method"}],"addLocalNotificationForIOS":[{"__symbolic":"method"}],"deleteLocalNotificationWithIdentifierKeyInIOS":[{"__symbolic":"method"}],"addDismissActions":[{"__symbolic":"method"}],"addNotificationActions":[{"__symbolic":"method"}],"setLocation":[{"__symbolic":"method"}],"startLogPageView":[{"__symbolic":"method"}],"stopLogPageView":[{"__symbolic":"method"}],"beginLogPageView":[{"__symbolic":"method"}],"getConnectionState":[{"__symbolic":"method"}],"setBasicPushNotificationBuilder":[{"__symbolic":"method"}],"setCustomPushNotificationBuilder":[{"__symbolic":"method"}],"clearAllNotification":[{"__symbolic":"method"}],"clearNotificationById":[{"__symbolic":"method"}],"setLatestNotificationNum":[{"__symbolic":"method"}],"addLocalNotification":[{"__symbolic":"method"}],"removeLocalNotification":[{"__symbolic":"method"}],"reportNotificationOpened":[{"__symbolic":"method"}],"requestPermission":[{"__symbolic":"method"}],"setSilenceTime":[{"__symbolic":"method"}],"setPushTime":[{"__symbolic":"method"}]}}}}] |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ **WARNING: 如果不按照这个表格,我们将无法帮助你,并将忽略你的问题。** |
{ | ||
"name": "jpush-phonegap-plugin", | ||
"version": "3.8.6", | ||
"version": "4.8.5", | ||
"description": "JPush for cordova plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -0,0 +0,0 @@ # JPush PhoneGap / Cordova Plugin |
@@ -485,2 +485,9 @@ var JPushPlugin = function() {}; | ||
//设备是否同意隐私协议 | ||
JPushPlugin.prototype.setAuth = function(isAuth){ | ||
if(device.platform === "Android"){ | ||
this.callNative("setAuth", [isAuth], null); | ||
} | ||
} | ||
/** | ||
@@ -487,0 +494,0 @@ * 设置手机号。 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18088
17505437
2