-
Notifications
You must be signed in to change notification settings - Fork 110
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
Sending web push to APNs (https://web.push.apple.com) responds with 403 Forbidden #207
Comments
Here's the StackOverflow post for reference. |
It seems to me that your usage of the library is non-standard. Why bother creating your own Http objects? Maybe try following the simpler usage in the example code? |
Seems to be related to this: |
Thanks for the link @krissvaa to the comment. By adding a subject to the PushService it works 🥳 :
|
Dang. My bad. I should have updated you on how I got it working. Yes, adding the subject got it going. The docs on the webpush-java library don't show this way of instantiating the PushService. I did find it clearly shown on webpush. |
Has anyone got web push working with iOS Safari (w/PWA)?
I posted the following on StackOverflow, but got no response.
We can send web push from java server to PWA on Android/Chrome works fine, but sending to PWA on iPhone/Safari fails with 403 Forbidden.
Works fine on Android phone
Request to fcm.googleapis.com
Response
Fails on iPhone
Request to web.push.apple.com
Response
I'm using the webpush-java library to prepare the web push request. Here's the send code:
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: