Bug 182566 - Feature Request: Add support for the ServiceWorkerRegistration's PushManager interface
Summary: Feature Request: Add support for the ServiceWorkerRegistration's PushManager ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-02-07 00:56 PST by Thomas Steiner
Modified: 2019-03-15 15:22 PDT (History)
31 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Steiner 2018-02-07 00:56:43 PST
This Feature Request is to gauge WebKit's interest in implementing the ServiceWorkerRegistration's PushManager interface (https://w3c.github.io/push-api/#pushmanager-interface), aka. "Push API".

It's "live" in Chrome and Firefox (https://www.chromestatus.com/feature/5416033485586432), and "in development" in Edge (https://developer.microsoft.com/en-us/microsoft-edge/platform/status/pushapi/).
Comment 1 Takahiro Ichihashi 2018-03-16 00:55:20 PDT
Webkit status shows Service Workers is "supported in preview", but I'm afraid this would be incorrect unless Push API is supported. Push API is quite popular reason for current websites to implement Service Workers today. Hoping anyone to start discussing / building this feature. 
https://webkit.org/status/#?search=service%20workers
Comment 2 Chris Dumez 2018-03-16 08:47:34 PDT
(In reply to Takahiro Ichihashi from comment #1)
> Webkit status shows Service Workers is "supported in preview", but I'm
> afraid this would be incorrect unless Push API is supported. Push API is
> quite popular reason for current websites to implement Service Workers
> today. Hoping anyone to start discussing / building this feature. 
> https://webkit.org/status/#?search=service%20workers

It is a different specification.
Comment 3 Takahiro Ichihashi 2018-03-16 09:41:51 PDT
Agree this is not just a small portion of existing tasks, someone needs to decide and probably creates necessary component category and issues. Wanted to ping you guys that this is a highly expected feature. :) I think there will be complaints against webkit not having pushmanager as part of service workers once it's published more widely. 

Probably chrome folks know the situation pretty well but maybe not giving enough citing/warning here because of browser competitions.
Comment 4 Stefan Sechelmann 2018-03-16 09:57:35 PDT
I suspect this to be a highly political decision which has to be decided by Apple internally. In the end this differentiates if PWAs are first class citizens in iOS or not. If apple opts into WebPush this will cut into its AppStore revenue eventually.
Comment 5 Brady Eidson 2018-03-16 13:04:46 PDT
As we indicated we were doing last year, we’ve implemented the core ServiceWorker spec - https://w3c.github.io/ServiceWorker/ - in trunk WebKit.

Web Push is a different spec that we’ve made no comment on one way or another.

We know there’s interest in implementing the Web Push spec, and thank you for your feedback.

There’s nothing to announce right now, as Apple generally doesn’t comment on future products/development.
Comment 6 tmdoit 2018-11-27 09:52:36 PST
Any updates?
Comment 7 Arno ten Hagen 2019-01-28 11:31:39 PST
We need the Push API! When will it be added? A lot of webdevs are waiting for this feature.
Comment 8 Richard Maher 2019-01-28 20:00:24 PST
Please be aware that the current W3C Push API specification does not support "broadcast" or Topic-based subscriptions such as weather updates, news, etc. To achieve this highly desirable functionality people have had to turn to Firebase :-(
Comment 9 Richard Maher 2019-01-29 22:12:58 PST
Here is a think to a description of the W3C Web API deficiency https://t.co/S9fTNUersU

Maybe Apple and Google can cooperate to produce a Push Protocol that encompasses more use cases than just the Dark Web "I must encrypt all my communication!"
Comment 10 Richard Maher 2019-01-29 23:11:14 PST
Sorry for not adding this potential solution link to previous: -
https://developers.google.com/web/updates/2018/11/signed-exchanges
Comment 11 Maciej Stachowiak 2019-01-30 23:10:45 PST
<rdar://problem/34829517>
Comment 12 Michaela Merz 2019-02-07 14:27:54 PST
Push Notification is essential for all interactive web (and pwa) environments. Users are enjoying web-mail, gaming, messaging, rtc-style talking, conferencing and much more that may require (push-) notifications to tell the user about important events if she is not actively on the page. It's sad that we always have to add an (*) to our feature list stating that push notifications are not (yet?) supported on webkit browsers.
Comment 13 Balint H 2019-02-19 06:15:37 PST
Any updates? We need the Push API on iOS. A lot of users (humans) are waiting for this feature.
Comment 14 Michael Flores 2019-03-11 12:26:50 PDT
We'd love to implement push notifications on Bethesda.net, a website used by millions every month to get the latest gaming news. It's not a case where we want to make a native app, but would love the capability of pushing customized notifications to users without them having to be on the site – that's where this API comes in.
Comment 15 Filip Bech-Larsen 2019-03-11 12:34:08 PDT
Push Notifications are such a great features in e-commerce, and it kills me that our iOS users still have to do with old-fashioned email. 
Sure the loyal recurring customer could download the app, but most clients buy once a year, and shouldn't choose between receiving order-updates with a 150mb app or getting along with email in our instant web-experience.
Comment 16 Arthur 2019-03-11 13:06:54 PDT
It would be awesome if Safari on iOS at least supported its proprietary format from macOS. It would be much better than nothing.
Comment 17 Romulo Cintra 2019-03-11 15:03:38 PDT
It would be a game changer for all web app developers having some kind of Push Notifications implemented in iOS. Probably with similar implementation from the native ones the way fits better but is really needed to have it cross-platform way
Comment 18 James 2019-03-11 16:36:44 PDT
Push API would be a very useful API for the types of apps I am developing. I do not currently have the Push API because almost all of my users are on iOS but if WebKit delivers signals of implementation I would begin working on including the feature immediately.
Comment 19 Edmond 2019-03-15 15:22:18 PDT
Two of my customers (small and large startups) are eagerly anticipating the notifications feature to be supported on iOS. Your work and progress on this is much appreciated by developers and small businesses, like these two in Denmark, Copenhagen.