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
e7a3a0a673
Update config to search non-repo local files (in /etc) first
In order to allow for secrets in the local config file that should be
nowhere near a public repo
b8e704c300
Update frontend to allow requesting and receiving notifications
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
4ee4869f82
Minor fixes & improvements
- Move push subscription handling to Notifier class
- Allow duplicate options in config
- Only save subscription in frontend if sub call was successful
39a461df56
Move VAPID public key config to backend for easier config
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.