@tencentcloud/web-push 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/web-push",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Tencent Cloud Web Push SDK - Service Worker-based web push notification service",
5
5
  "main": "index.umd.js",
6
6
  "module": "index.esm.js",
@@ -11,6 +11,7 @@ export declare class WebPushSDK implements IWebPushSDK {
11
11
  private appKey;
12
12
  private vapidPublicKey;
13
13
  private pendingMessages;
14
+ private enableSystemPermissionAlert;
14
15
  EVENT: typeof EVENT;
15
16
  VERSION: string;
16
17
  constructor();
@@ -31,6 +31,12 @@ export interface RegisterPushOptions {
31
31
  * 4 - 无日志级别,SDK 将不打印任何日志
32
32
  */
33
33
  logLevel?: LogLevel;
34
+ /**
35
+ * 是否显示系统权限提示弹窗
36
+ * true - 显示系统权限设置提示(默认)
37
+ * false - 不显示系统权限设置提示
38
+ */
39
+ showSystemPermissionAlert?: boolean;
34
40
  }
35
41
  export declare enum EVENT {
36
42
  MESSAGE_RECEIVED = "message_received",