top | item 31645802

(no title)

dave5104 | 3 years ago

> Users opt into notifications by first indicating interest through a user gesture — such as clicking a button. Then, they’ll be prompted to give permission for your site or app to send notifications. Users will be able to view and manage notifications in Notifications Center, and customize styles and turn notifications off per website in Notifications Settings.

Looks like there will be some interaction required to prompt it.

That being said, hoping there's a browser-level option to just turn it off.

discuss

order

hbn|3 years ago

I came here to ask about that line.

Is that user flow described actually a requirement somehow, or is that just an "ideal scenario"? Cause right after that it says "If you’ve already implemented Web Push for your web app or website using industry best practices, it will automatically work in Safari" and existing implementations don't require a button press that they used in their example. Facebook just pops up the browser prompts to allow or block as soon as you visit the page, as do many news sites and other stuff I don't want notifications from.

Maybe the "using industry best practices" part is key, and they somehow will block implementations like Facebook.

google234123|3 years ago

It should be a browser-level option to just turn it ON.

sberder|3 years ago

This is already the case for the install prompt used by PWA. The browser uses an interaction heuristic to send an event that allows a PWA to show an install button.