@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/CHANGELOG.md +20 -6
- package/README.md +34 -8
- package/index.d.ts +7 -0
- package/index.esm.js +49 -6
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/core/web-push-sdk.d.ts +1 -0
- package/src/types/outer.d.ts +6 -0
package/package.json
CHANGED
package/src/types/outer.d.ts
CHANGED
|
@@ -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",
|