Standalone push notifications for progressive web apps

Is it possible to trigger push notifications (on iOS and / or Android) from a web app while offline?

As I understand it, even when using a Service Worker, push notifications are always triggered via the server, which seems to preclude reliable offline reminders or something.

+7


source to share


1 answer


There are Notifications that work offline, but you cannot call them from the "background" (for example, when your web page is closed).



Background Job (or a similar feature) is not yet available online, and I'm not sure if it's a good idea to use this power online. The closest thing you can do is sound like a "background" is MediaSession , which lets you play music and control media controls on your hardware devices.

+8


source







All Articles