-
Notifications
You must be signed in to change notification settings - Fork 0
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
Investigate - Push subscription has unsubscribed or expired. #3
Comments
Pushpad blog with information related to this: https://blog.pushpad.xyz/2021/01/web-push-error-410-the-push-subscription-has-expired-or-the-user-has-unsubscribed/. |
Tasks
|
Work for this is being done in v2.1 branch. |
A good example of a push notification service worker from PushPad doesn't seem to implement any CSRF protections when a |
Testing See https://stackoverflow.com/questions/36602136/how-can-i-test-pushsubscriptionchange-event-handling-code and https://bugs.chromium.org/p/chromium/issues/detail?id=753163 |
Tested the Replicated payload that would be sent by the service worker. HTTP 200 OK response 👍🏻 Unfortunately, I couldn't get Firefox or Chrome to trigger the |
Deployed to production. Will monitor in the coming days. |
I've been looking a little deeper into the Here is the current (working draft) W3 specification for the The specification indicates that the Taken from: w3c/push-api#325 (comment)
I'm not expert in cpp but it appears to still be that way today: Commit hash: 9b0bdcc3 This presents an issue for users of Firefox who use PS2Alert.me. When the subscription eventually expires, there is no quick/easy way of sending the new subscription data to the server. Luckily, there is a workaround documented here that I could try implementing. Looking to Chrome, the
Peter's final comment hints that
Looking to Microsoft Edge, the status page points to the Push API being supported. However, to what extent I'm not sure (e.g. Is |
The recommended library: https://github.com/RyotaSugawara/serviceworker-storage from the medium post is now readonly. Looking into using: https://github.com/jakearchibald/idb EDIT: I only need to |
Handle setting, deleting and updating subscription.
Further work is being done in branch v2.2 - Changes to be implemented to production soon. |
Changes implemented into production. To monitor over the coming days again. |
Testing with Firefox, the At line 26 indicating that The service worker will need the Public VAPID key and |
Changes deployed to production. |
The logs for the
consumer
contain several errors which I haven't seen before. The errors indicate that push notifications are not being delivered.This needs to be investigated further.
Users are highly likely to not be receiving push notifications due to this.
Seems to only be occuring for subscriptions that come from Chromium based browsers.
The text was updated successfully, but these errors were encountered: