-
Notifications
You must be signed in to change notification settings - Fork 54
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
UnauthorizedRegistration #30
Comments
You should add the I have written some instruction in my package about sending notification to chrome users. You can take a look there |
So I need to pass a gcm_key even if my endpoint does not start with |
I think it is needed for sending any notification via |
No luck, even with unrestricted API key :( r = WebPusher(sub3).send(data="awdawd", gcm_key="<redacted>") |
If I understand google's FCM/WebPush protocol requirements: https://developers.google.com/web/updates/2016/07/web-push-interop-wins , you need to specify a VAPID header with your request. You would include the header as "Authorization: WebPush {JWK_token}". The article talks about how to create a VAPID header, and you may find https://github.com/web-push-libs/vapid/tree/master/python useful. |
closing due to inactivity. If this is still a problem, please reopen with comment. |
Im trying to use pywebpush under python 2.7 (and 3.5) without any success. I am getting the error
UnauthorizedRegistration
with a400
response code. Using the Push Companion, everything works just fine (with the same key and same subscription info).Also, my internal clock is synced (some people reported having issues if your clock is not synced).
My code :
Which returns :
I am getting the same result no matter which Python version I use.
Any help debugging this would be really really appreciated...
The text was updated successfully, but these errors were encountered: