Skip to content
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

Web push notifications are not working with web.push.apple.com (Safari) #338

Closed
Dainiu5 opened this issue Jun 7, 2023 · 3 comments
Closed
Labels
X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@Dainiu5
Copy link

Dainiu5 commented Jun 7, 2023

I am working with web push notifications and have configured sygnal push gateway accordingly. Notifications get delivered to Chrome and Firefox browser clients. However, notifications fail when sending them to Safari browser. The error log is shown below. Has anyone come across this problem when working with apple web push notifications?

Error logs:

2023-06-07 14:32:28,034 [1] WARNING sygnal.webpushpushkin webpush request failed for pushkey BLAFJI0imay67mWA7FmNz42hV-3uO36QUhQSJeAOE0VDTOPiOvDdDuuRM_JLAGO-mkTzeL4QCGlxwcZuV0J4xRE; web.push.apple.com responded with 403: {"reason":"BadJwtToken"}
2023-06-07 14:32:28,040 [1] INFO  sygnal.access Handled request: "<some-ip>" - - [07/Jun/2023:14:32:28 +0000] "POST /_matrix/push/v1/notify HTTP/1.1" 200 16 "-" "Synapse/1.81.0"

web.push.apple.com responded with 403: {"reason":"BadJwtToken"}

@Dainiu5 Dainiu5 changed the title web.push.apple.com responded with 403: {"reason":"BadJwtToken"} Web push notifications are not working with web.push.apple.com (Safari) Jun 7, 2023
@erikjohnston
Copy link
Member

That looks to me like the client is failing to correctly register for web push with Apple, and so our attempts to push to use the client submitted push key is failing? Basically Apple is saying the pushkey submitted by the client is wrong somehow. Might be worth trying to get a new pushkey from Apple and trying again?

@erikjohnston erikjohnston added the X-Needs-Info This issue is blocked awaiting information from the reporter label Jun 12, 2023
@H-Shay
Copy link
Contributor

H-Shay commented Jul 5, 2023

Any updates on this? Did the suggestion resolve your issue?

@reivilibre
Copy link
Contributor

There doesn't seem to be enough information here in order to reproduce or fix this issue right now.

I will close this issue but it can be reopened (or a new issue, linking to this one, opened) if the issue recurs with more information available.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

4 participants