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

8 Commits

Author SHA1 Message Date
Oskar Winkels 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.
2021-06-11 01:57:32 +02:00
Oskar Winkels 711fbfd821
Update docs 2021-06-11 01:28:56 +02:00
Oskar Winkels 3a872bceb2
Enable Docker container to generate its own VAPID credentials 2021-06-11 01:06:59 +02:00
Oskar Winkels 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
2021-06-11 01:04:44 +02:00
Oskar Winkels 618f00a09a
Send notifications N hours after arrival, polling once per hour 2021-06-10 23:14:15 +02:00
Oskar Winkels 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
2021-06-08 00:56:29 +02:00
Oskar Winkels e521edd62b
Add basic webpush backend functionality and endpoints for testing 2021-06-08 00:48:11 +02:00
Oskar Winkels 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
2021-06-08 00:47:00 +02:00