This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Open a bug to track the topic on the mailing list. http://lists.w3.org/Archives/Public/public-webapps/2014OctDec/0179.html When the "push client" can handle generic actions (such as posting a toast notifications) waking up the browser (or a subset of it) and let service workers to display each notification might not be the best practice from performance perspective, especially when the user does not want to pick up each incoming video call or read each incoming emails right away. The Push API spec should allow the web developers to have flexibility to leverage the generic actions, or rely on a service worker, or maybe do both. I expect the generic message types should be scoped to a very small set. Toast notification with a text message and an optional image should be a good starting point. This will also lead to extensions to existing API. For example, we should allow a webapp to construct a PushRegistrationManager based on a valid registrationId it got previously. We should think through the details in the WG. BTW, Martin Thomson mentioned another scenario [1] in the mailing list that can also benefit without having the service worker dependency. [1] http://lists.w3.org/Archives/Public/public-webapps/2014OctDec/0140.html
What's the problem with requiring a service worker?
[ Bryan, Eduardo, Michael - rather than track Push API bugs via Bugzilla and Github Issues, perhaps you should converge on one (probably Github). ]
Even more directly - what's the Push "client", if not code inside the SW? How do you "handle" actions without somewhere to hang that code?
(In reply to Chris Wilson from comment #3) > Even more directly - what's the Push "client", if not code inside the SW? > How do you "handle" actions without somewhere to hang that code? Based on Fig. 1 of the spec, the client is implemented in the UA or the system it runs on.
(In reply to Arthur Barstow from comment #2) > [ Bryan, Eduardo, Michael - rather than track Push API bugs via Bugzilla and > Github Issues, perhaps you should converge on one (probably Github). ] I'll copy the bug to Github. Thanks!
This bug has been moved to a Github issue <https://github.com/w3c/push-api/issues/84>.