logoalt Hacker News

mr_mitmtoday at 11:50 AM1 replyview on HN

I'm currently attempting to write a calendar app for personal use, and I wanted to go the route of a self-host PWA. Notifications are a good point. How can I create notifications as a reminder before an event? Alerts are part of the icalendar standard ("VALARM"), so these are clearly notifications that are wanted by the user. Is that even possible for a PWA?


Replies

whstltoday at 11:58 AM

You can send notifications with PWAs with Web Push API + Service Worker, same as a regular page.

But, AFAIK, you need the server for push, though. It used to be possible to program entirely from the client with this proposed feature but AFAIK it's abandoned: https://github.com/GoogleChrome/developer.chrome.com//blob/m...

show 1 reply