-
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
KaiOS support #138
Comments
Sigh. For a lot of those reasons, I think it's better to require explicit declaration if you need to use the old specifications. Otherwise, it's too easy to screw up and potentially expose data. I can see creating something like a |
I based my presumptions on this issue web-push-libs/web-push#603. I received the same error with pywebpush and default usage scenario (Vapid02 and OTOH if I used the JS library, I would avoid some extra detective work since in JS lib, |
heh, well the js/python fail is definitely my fault because there's no common suite of tests and the python side has gotten a lot more external attention. Yeah, 401:116 is something they've defined, and is probably in whatever they're running as their push server. (REALLY hope it's not a variant of the old python2 autopush server, but 🤷🏻♂️) Not sure when I can get to this, but I'll try to come up with something. |
I'm having the same problem and now I realize the problem was not on my side... |
We are playing with KaiOS push notifications.
Their notification service only seems to accept
Content-Encoding: aesgcm
. They also seem to refuse to accept Vapid02 keys (vapid
Authorization scheme). Based on this code in JS library, it seems that it's a good idea to coupleaesgcm
encryption with WebPush (Vapid01) authorization scheme. Mozilla service happily accepts both Vapid01 and Vapid02 keys but KaiOS service does not.It would be great if the Python lib also coupled
aesgcm
encoding with Vapid01 keys. Now Vapid02 is selected by default (if not provided directly as an object). This would help newcomers looking at error 400 without any message provided by the KaiOS service. On the other hand, I have not found any relation between Content-Encoding and Authorization schema in the docs.The text was updated successfully, but these errors were encountered: