Re: [w3c/push-api] check and consume user activation (PR #348)

I'm not sure this is Web compatible -

1. `subscribe()` can be called from within a service worker, where there are no local activations that can be consumed -- particularly the [consume user activation](https://html.spec.whatwg.org/multipage/interaction.html#consume-user-activation) steps assume that there's a window.
2. Looking at our metrics, only about a fourth of permission requests happen with a gesture. We mitigate against this by displaying a different user interface (if any at all) in those cases. In my reading it would be valid for an implementation not to show any prompt at all.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/348#issuecomment-1165673457
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/push-api/pull/348/c1165673457@github.com>

Received on Friday, 24 June 2022 15:15:28 UTC