0

I am trying to do a notification in my Angular PWA and haven't found anything close to my use case.

Users of the app should have the option to set a notification for a BUS departure at a given time; for example, 10 minutes before the departure, I want the app to send them a notification (if set).

I thought that I can somehow set this notification on the client-side, so that I can schedule it and the service worker will take care of it when the time comes, but I haven't found anything so I am not sure, if this approach is correct. I tried some implementations of the https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API Notification API, but this does not work on phones, on desktops it was fine.

Or should I use a firebase for this? It's worth mentioning that there are no user accounts or logins in the application, so I cannot store it in the DB that easily with specified times.

Thanks a lot for your help

Petr Jelínek
  • 1,259
  • 1
  • 18
  • 36

0 Answers0