This has been in Chrome for years and Firefox just started to support it on Windows and Linux since 2023/2024. Note that Chrome's macOS support is hacky as it works around macOS' limitation to have only one notification type for each app (banner or alert), by having a separate notification helper app. I would be happy to get the discussion started to have better macOS side support for all browsers.
WebKittens
No responseEdit: @beidson @marcoscaceres @annevk, copying from the push proposalTitle of the spec
Notification's requireInteraction
URL to the spec
https://notifications.spec.whatwg.org/#require-interaction-preference-flag
URL to the spec's repository
No response
Issue Tracker URL
No response
Explainer URL
No response
TAG Design Review URL
No response
Mozilla standards-positions issue URL
No response
WebKit Bugzilla URL
No response
Radar URL
No response
Description
The spec added this feature in 2015: https://github.com/whatwg/notifications/pull/53, which seemingly received no input from Apple side but only from Google and Mozilla.
This has been in Chrome for years and Firefox just started to support it on Windows and Linux since 2023/2024. Note that Chrome's macOS support is hacky as it works around macOS' limitation to have only one notification type for each app (banner or alert), by having a separate notification helper app. I would be happy to get the discussion started to have better macOS side support for all browsers.