Open marcoscaceres opened 2 years ago
Preparing a WPTest...
I'm not sure this is Web compatible -
subscribe()
can be called from within a service worker, where there are no local activations that can be consumed -- particularly the consume user activation steps assume that there's a window.Note that Gecko opted to require user activation only if the permission is not granted, and just proceeds without activation if it's granted, which I think is the best way as reportedly some websites repeatedly calls pushManager.subscribe()
every time: https://bugzilla.mozilla.org/show_bug.cgi?id=1486010#c5
Instead, the page calls pushManager.subscribe every time you visit it
I'll take a closer look at what WebKit does... we might be doing something similar @saschanaz.
Closes #346
The following tasks have been completed:
Implementation commitment:
Preview | Diff