- From: Jake Archibald <notifications@github.com>
- Date: Wed, 18 Feb 2015 10:37:53 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 18 February 2015 18:38:22 UTC
Additionally, I think we should make `postMessage` return a promise which rejects on unsuccessful delivery. After a push message, a SW may find a focused & visible client and post a message to it, but that fails because the tab as since been closed. Developers should be able to catch that case and show a notification instead. This also allows us to reject posts to "asleep" tabs. https://github.com/slightlyoff/ServiceWorker/issues/626 --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/609#issuecomment-74920652
Received on Wednesday, 18 February 2015 18:38:22 UTC