-
Notifications
You must be signed in to change notification settings - Fork 107
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
Include subscription in WebPushException #5
Comments
Do you have an example of what url are trying to hit in Firefox? Thanks for your suggestion regarding adding push subscription details in WebPushException. |
Sure. Since I used VAPID I got a mozilla endpoint wiht "/v2" i assume. So this is my subscription object: |
That looks correct to me - are you sending a payload? If not, can you try sending an arbitrary string as the payload. If that fails would you mind sharing code? |
Yes, I send some payload with it - an object containing data that was stringified for sending. |
So I looked into it and it was totally my mistake. In the past I saved the subscription object (in this case the endpoint) in the database without the trailing "push vendor url" (like Thanks again for your help and I'm looking forward to the detailed WebPushException (I saw you already implemented it)! |
You're welcome, thank for the update. |
Hi!
This is more a feature request than an issue.
In the case that a stored subscription is not valid any more I get a WebPushException with status code "Gone", but at that moment I don't now to which subscription it relates to. So I'm not able to delete it from my database and will get this exception again and again. Therefore it would be great to provide the subscription via the WebPushException.
What you think about it?
Edit: I have troubles using Web Push with VAPID and payload on Firefox (v. 46.xx). On Chrome I receive the notification with data without any issues but when sending to Firefox I get a "NotFound" within a WebPushException. I tried to debug it, but there isn't any hint I could find. Do you/anybody have tips for that matter?
Thank you!
The text was updated successfully, but these errors were encountered: