4

I'm working on a progressive web app (PWA) that is targeting Android users. Is it possible to schedule and send local push notifications without using a Cordova WebView and Plugin like this?

Tom
  • 5,588
  • 20
  • 77
  • 129

1 Answers1

1

If I understand you well, yes! you can.

How? By using the native Push API with Notification API. Mozilla and Google have great documentation for them.

Fares
  • 36
  • 4
  • Thanks for your answer. How would you schedule them for offline use - is this possible at all? – Tom Aug 18 '21 at 18:06
  • @Tom As far as I know, you need either: Process, aka. Service Worker to maintain it manually i.e implement your own scheduler, or a [Browser API](https://stackoverflow.com/questions/56432441/is-there-a-way-to-schedule-offline-notifications-in-a-pwa) let you do that, see [this also](https://web.dev/notification-triggers/). – Fares Aug 19 '21 at 12:15