Hacker News new | ask | show | jobs
by matt-attack 3197 days ago
But in either case the browser has to be running I’m assuming? Seems kinda flawed.
2 comments

JS service workers allow a JavaScript thread to run in the background while the browser chrome (the window) is closed. So, in theory, the browser doesn't need to be open. Also, notifications can be useful with an open browser too (or, multiple tabs with a tab in the background for example)
That depends on the browser implementation. The protocol does not require the user to have the site open.