Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to Ship (Beta and Release): Push API

99 views
Skip to first unread message

Kit Cambridge

unread,
Dec 17, 2015, 2:27:50 PM12/17/15
to dev-pl...@lists.mozilla.org, push
Hi all,

In August, I sent an intent to ship for the Push API in Firefox 42 [1]. Push shipped in Dev Edition, but was disabled in beta and release. I'm happy to report that Push will ride the train to release in Firefox 44.

Firefox 44 adds per-site notification permissions in Content preferences, notification controls, and a "do not disturb" switch for platforms without native notifications. The permissions for desktop notifications and Push have also been merged. If the permission is granted, `navigator.permissions.query` will return true for both "notifications" and "push".

Push in 44 supports data delivery. Messages must be encrypted using the "aesgcm128" content-coding scheme [2]. Reference encryption libraries are available for Node [3] and Python [4]. Currently, messages that are not encrypted correctly will be dropped. We'll be working on Dev Tools support for Firefox 46, to make this easier to debug [5].

Finally, 44 relaxes the background message quota. For each background push, the service worker has a grace period of 3 seconds to show a notification. If a notification is visible at the end of the period, the quota won't be affected.

Push is only implemented on Desktop. Android is targeting Fennec 46 [6].

Please let me know if you have any questions.

Cheers,
- kit

[1]: https://groups.google.com/d/msg/mozilla.dev.platform/BL6TrHN73dY/Hfpp-rS_JgAJ
[2]: https://tools.ietf.org/html/draft-thomson-http-encryption-02
[3]: https://github.com/marco-c/web-push
[4]: https://github.com/martinthomson/encrypted-content-encoding
[5]: https://bugzilla.mozilla.org/show_bug.cgi?id=1214248
[6]: https://bugzilla.mozilla.org/show_bug.cgi?id=1206207

0 new messages