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?
Asked
Active
Viewed 334 times
2 Answers
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
0
You need to check the docs of each plugin you are using, to see if they support the browser platform.
As far as your requirement looks you can use use phonegap-plugin-push which also support browser platform.
Reference:
Another Solution: Ionic Framework with Push Notifications
Nadeem Taj
- 117
- 4
- 21