Skip to content

Fix webpush API #777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

goinnn
Copy link
Member

@goinnn goinnn commented Jun 5, 2025

When registering a Web Push endpoint in the backend, it is essential to save the complete endpoint URL provided by the browser instead of just the token or identifier. This is because the full URL includes not only the device identifier but also the specific push service host, path and query parameters necessary for proper authentication and message delivery. These can change over time, storing only the token or a partial value risks losing the ability to send reliable and secure notifications, thus affecting the overall stability of the push notification system.

Therefore, the lookup_value_regex should allow for almost any character, as the value is sent from the frontend using encodeURIComponent, and URLs tend to be very complex and diverse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants