Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement proper push notification token deletion
Related to #290 Implement proper push notification token deletion during PWA uninstall. * **frontend/public/service.js** - Add an event listener for the `beforeunload` event to handle PWA uninstall. - Call the `unsubscribe` function to delete the push notification token during PWA uninstall. - Define the `unsubscribe` function to send a DELETE request to the server to remove the push notification token. * **backend/services/notification/handler/notification.go** - Update the `Unsubscribe` function to handle token deletion during PWA uninstall. - Add a check to verify if the request is coming from the PWA uninstall event by checking the subscription endpoint. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/kioku-project/kioku/issues/290?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information