We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
更新:
看了英文文档,是需要显式的声明权限的。
declare_permissions
"permissions": [ "notifications" ]
加入权限后,正常调用。
看了文档貌似没有明确说必须赋权,声明权限
The text was updated successfully, but these errors were encountered:
使用H5的 Notification 会没有权限, Notification.permission 默认是 default 且 active tab允许通知也无法使用 backgroundjs 发起通知,也无法使用 Notification.requestPermission 进行赋权。
Notification
Notification.permission
default
active tab
backgroundjs
Notification.requestPermission
版本: Chrome/73.0
Sorry, something went wrong.
No branches or pull requests
更新:
看了英文文档,是需要显式的声明权限的。
declare_permissions
需要加入 notifications 权限,否则无法调用。报错如下。
加入权限后,正常调用。
看了文档貌似没有明确说必须赋权,声明权限
The text was updated successfully, but these errors were encountered: