4 ms·
You can send notifications with PWAs with Web Push API + Service Worker, same as a regular page. But, AFAIK, you need the server for push, though. It used to b
by whstl 3mo ago
You can send notifications with PWAs with Web Push API + Service Worker, same as a regular page.
But, AFAIK, you need the server for push, though. It used to be possible to program entirely from the client with this proposed feature but AFAIK it's abandoned: https://github.com/GoogleChrome/developer.chrome.com//blob/main/site/en/docs/web-platform/notification-triggers/index.md https://github.com/GoogleChrome/developer.chrome.com//blob/m...
- mr_mitm 3mo ago> You can send notifications with PWAs with Web Push API + Service Worker, same as a regular page. While the app is awake, sure. I'd like notifications to work even if the OS backgrounded the app, and even without a network connection, like I'd expect a reminder to work. > https://github.com/GoogleChrome/developer.chrome.com//blob/main/site/en/docs/web-platform/notification-triggers/index.md https://github.com/GoogleChrome/developer.chrome.com//blob/m... Looks like this is what I need and it doesn't exist. So the short answer is "no". Thanks for the link!
- whstl 3mo ago> While the app is awake, sure. That's not true. The browser's push service wakes the service worker on delivery, even if the PWA is fully closed. That's the entire point of Push API vs polling.
- deleted 3mo ago[deleted]