Re: [w3c/ServiceWorker] postMessage keeps service workers alive indefinitely (#980)

@MarkEmerson 

> What can we do in 5 seconds

I think you're the first to mention "5 seconds".

> we need the service worker to stay active/alive not keep stopping due to its limited lifespan

We have that with workers & shared workers.

> We are having to move all our web app code to a android native wrapper and use a webview because the service worker stops running code

What kind of work are you trying to do that can't be done in a regular (or shared) worker?

> We need code to run in background when the app loses focus otherwise its pointless

By the way, Android is starting to prevent apps from doing this. It's a big source of battery issues.

For particular long-running processes, you may be interested in https://w3c.github.io/wake-lock/.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/980#issuecomment-310405830

Received on Thursday, 22 June 2017 14:58:31 UTC