gwt-material icon indicating copy to clipboard operation
gwt-material copied to clipboard

PushManager.permissionState() not working on Chrome

Open ingosch opened this issue 3 years ago • 1 comments

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.

ingosch avatar Sep 13 '21 13:09 ingosch

Hi there,

You can submit PR I think then we can test it or we can patch this change.

Thanks, GMD Team

On Mon, Sep 13, 2021 at 9:14 PM ingosch @.***> wrote:

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 http://url

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GwtMaterialDesign/gwt-material/issues/1016, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAX6EF766O2YYTKNRHMZAXDUBX2KXANCNFSM5D5ZQFDQ .

kevzlou7979 avatar Sep 13 '21 22:09 kevzlou7979