Summary:

As of Firefox 162, I intend to turn Declarative Web Push on by default on all platforms.

Declarative Web Push allows websites to show push notifications without needing to install a service worker by sending a push message in a specific JSON format with information about the notification and a URL to navigate to when the notification is clicked. This makes it easier to use the Push API and improves the efficiency of receiving push notifications by avoiding the cost of starting the service worker. The mutable property has not been implemented since we haven’t seen any usage of it or developer interest (bug 2071418 <https://bugzilla.mozilla.org/show_bug.cgi?id=2071418>).


Bug: https://bugzil.la/1935325 <https://bugzil.la/1935325>


Specification: https://w3c.github.io/push-api/#declarative-push-message <https://w3c.github.io/push-api/#declarative-push-message>


Standards Body: W3C (Web Applications WG)


Platform Coverage: All


Preference: dom.push.declarative.enabled and dom.push.window_pushmanager.enabled


DevTools Bug: N/A


Extensions Bug: N/A


Use Counter: web_push.declarative


Standards-Positions Discussion:

https://github.com/mozilla/standards-positions/issues/1176 <https://github.com/mozilla/standards-positions/issues/1176>


Other Browsers:

    Blink: Not implemented

    WebKit: Shipped since Safari 18.5


web-platform-tests:

Not currently possible to test with WPT (see https://github.com/w3c/push-api/issues/365 <https://github.com/w3c/push-api/issues/365>). Mozilla-specific tests are in testing/web-platform/mozilla/tests/push-api


--
Leo Tenenbaum (they/them)
Software Engineer, DOM Core @ Mozilla
Toronto, Canada

--
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/27e4069e-497b-47c1-a3cd-3fb0d2000564%40mozilla.com.

Reply via email to