Re: [w3c/ServiceWorker] Allow the service worker to work in the background without stopping for installed PWA (Issue #1728)

jimmywarting left a comment (w3c/ServiceWorker#1728)

I think that at least Mac user could get extra privileges to be able to run SharedWorker when a PWA is installed and all windows are closed. 
It's very common for Mac user to know that closing a windows dose not always equal to shutting down the process

Apple was thinking: it should always be ready and doing work in the background rather than shutting down everything.

Service worker have a very strict limited life cycle and gets killed every now and then... 
And i would not like to relay on that to build Apps that should be able to run in the background.

it would be nice if we could create SharedWorker where the lifetime of a SharedWorker stays alive until the app is terminated (Cmd+Q). And not terminated when simply closing the window (Cmd+W)

- Mac user have a clear indication of when Apps are still running by the small dot indicator under the app icon and also still showing up in the tab/window switcher
- Mac user have a clear instinct to shut down the app with Cmd+Q when it don't want the app to be running anymore
- Mac user have a clear instinct to only close windows with Cmd+W but still wish to still keep downloading pending resources, staying connected to the internet, listening to WebSocket and notify user when a DM has arrived. 

I can't say the same holds true for windows users where the expectation are more like: closing all window terminates the hole process

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

Message ID: <w3c/ServiceWorker/issues/1728/3854140810@github.com>

Received on Thursday, 5 February 2026 14:50:55 UTC