0

I want to create a WebApplication that displays notifications from time to time. As PWA with a ServiceWorker it runs in the background even if the browser is closed.

I learned that I need to use the PushAPI to subscribe to a server that sends push messages. The event handler then displays the actual notification.

Since my app is self-contained there is no need for an external server. I'd rather write some code that mimics a push event similar to setTimeout().

Is this possible?

htho
  • 1,203
  • 10
  • 23
  • I also thought maybe there is some CRON like server where any app can subscribe to be receive a Push every 5 minutes or at 01:13 PM – htho Oct 12 '21 at 06:06

0 Answers0