Skip to content
New issue

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

PushManager.permissionState() not working on Chrome #1016

Open
ingosch opened this issue Sep 13, 2021 · 1 comment
Open

PushManager.permissionState() not working on Chrome #1016

ingosch opened this issue Sep 13, 2021 · 1 comment

Comments

@ingosch
Copy link

ingosch commented Sep 13, 2021

Calling perissionState() without userVisibleOnly parameter raises an exception:

Uncaught (in promise) DOMException: Push subscriptions that don't enable userVisibleOnly are not supported.

https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState

Solution: simply add PushSubscriptionOptions as parameter to permissionState function in PushManager wrapper class.

@kevzlou7979
Copy link
Contributor

kevzlou7979 commented Sep 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants