Add push notifications for forgotten departures #26

Merged
o.winkels merged 8 commits from push-notifications into master 2021-06-11 02:07:11 +02:00
Owner

Resolves #9

Use VAPID web push notifications to notify users whenever they forget to sign out. See #9 for details.

Resolves #9 Use VAPID web push notifications to notify users whenever they forget to sign out. See #9 for details.
o.winkels added 8 commits 2021-06-11 02:05:44 +02:00
In order to allow for secrets in the local config file that should be
nowhere near a public repo
Includes requesting permissions and adding a basic service worker
as well as re-working and restructuring a bunch of the existing logic
for parsing URL parameters, sending data and adding another form field
- Move push subscription handling to Notifier class
- Allow duplicate options in config
- Only save subscription in frontend if sub call was successful
Also enables the frontend not asking for notiffication permission if it
doesn't need them.
Should also help if it ever needs to be changed to circumvent cache.
o.winkels merged commit 39a461df56 into master 2021-06-11 02:07:11 +02:00
o.winkels deleted branch push-notifications 2021-06-11 02:07:17 +02:00
Sign in to join this conversation.
No description provided.