it's easy to show notifications while the app is open (requires perhaps three lines of code)
Allowing PWA's to show notifications when they are closed seems to be near impossible though
The notification-triggers API has been under development from chrome, but they've abandoned the project
The Periodic background sync APIcould work, but it is not really its intended use, and it will only run when you have an internet connection (because it is intended to sync resources from the server)
The right way to do it seems to be with the Push API, but this only works if a server pushes a notification to the client device, so this doesn't seem optimal either.
Maybe some further investigation could be conducted, but I'm two hours and 28 browser tabs (I've cleaned them up at least once) into it, and it doesn't seem to be possible
it's easy to show notifications while the app is open (requires perhaps three lines of code)
Allowing PWA's to show notifications when they are closed seems to be near impossible though
Maybe some further investigation could be conducted, but I'm two hours and 28 browser tabs (I've cleaned them up at least once) into it, and it doesn't seem to be possible