0.0.1 • Published 1 year ago
adwin_web_push_pure v0.0.1
初始化 initNotification
调用Promise方法 evokeNotification
返回值
{
code: number,
msg: string,
permission: NotificationPermission,
}
code:
0:成功,由resolve返回;用户执行操作
1:成功,由resolve返回;已有状态
2:失败,由reject返回;用户点击同意,但出错未成功
3:失败,由reject返回;环境错误
检查权限 checkPermission
返回值
type NotificationPermission = "default" | "denied" | "granted";
0.0.1
1 year ago