Store push tokens #13
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: aCheeseInTheDark/tack-up-now#13
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create a vapid key pair, update the server application key on the front end with the public key.
On the back end, store subscriptions submitted via /api/subscribe
The subscription should be updated with every page load and on change. Additionally, a cookie should be set with a user id to track whose subscription should be updated.
So, implies the need to finally use the database.
Ended up not using a cookie, had to use indexed db to store a subscription id.
Done. Future work should prevent subscriptions from being dropped if they aren't successfully submitted.