Implement Web Push Notifications #10

Closed
opened 2024-02-01 21:07:19 +00:00 by silentsilas · 0 comments
Owner

When someone generates a URL with your unique request URL, users should be able to opt-in to receiving notifications that take them directly to the generated URL.

This will require a server for the client's service worker to subscribe to. Developers can opt-in to generating a version of the site with this functionality and set the endpoint they'll be using for push notifications. Otherwise the feature will not be included, and no service worker will be generated/registered.

The server SURE will be using will be in a different repository. So far, planning to use a Phoenix Elixir server that doesn't use a traditional database and only serves API requests. Mnesia, an in-memory database, will be used instead. It will need to update the subscription with each new site visit. If the server restarts, the database will be lost, and push notifications will not function for clients until they visit the site again.

When someone generates a URL with your unique request URL, users should be able to opt-in to receiving notifications that take them directly to the generated URL. This will require a server for the client's service worker to subscribe to. Developers can opt-in to generating a version of the site with this functionality and set the endpoint they'll be using for push notifications. Otherwise the feature will not be included, and no service worker will be generated/registered. The server SURE will be using will be in a different repository. So far, planning to use a Phoenix Elixir server that doesn't use a traditional database and only serves API requests. Mnesia, an in-memory database, will be used instead. It will need to update the subscription with each new site visit. If the server restarts, the database will be lost, and push notifications will not function for clients until they visit the site again.
silentsilas added the
enhancement
label 2024-02-01 21:07:19 +00:00
silentsilas added this to the MVP project 2024-02-01 21:07:19 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: silentsilas/sure#10
No description provided.