W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2014

Re: [push-api] Moving "PushManager push" onto ServiceWorkerRegistration

From: Jake Archibald <jaffathecake@gmail.com>
Date: Fri, 11 Jul 2014 18:08:15 +0100
Message-ID: <CAJ5xic-UWPRXz8G2BpGf2fk5GucTZc=+RYbY2_42eAYuAKb3DQ@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Webapps WG <public-webapps@w3.org>
On 11 July 2014 17:59, Jonas Sicking <jonas@sicking.cc> wrote:

> On Fri, Jul 11, 2014 at 8:17 AM, Jake Archibald <jaffathecake@gmail.com>
> wrote:
> > navigator.serviceWorker.ready.then(function(reg) {
> >   reg.push.register(...)
> > });
>
> I agree this looks good. Though maybe
>
> reg.registerPush(...)
>
> instead?
>

.push also has .unregister, will probably have .hasPermission too.

(the current spec has .registrations, but I believe one registration per
serivceworker is the rule now)
Received on Friday, 11 July 2014 17:08:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:26 UTC