npm:web-push not working
Version: Deno 1.43.1
web-push is not work Deno.
AES-GCM decryption in Chrome fails and causes an error. This prevents us from receiving messages sent from the server.
We have prepared a verified repository for your reference.
https://github.com/Octo8080X/verification-web-push-on-Deno
Deno 1.44.1 was used to check again, but the situation remained the same and failed.
I am seeing this same issue too. I have a Supabase Edge Function that runs on the Deno runtime that uses web-push to my subscribed devices for notifications.
When my devices receive push notifications I receive the AES-GCM decryption failed log in the Message Decryption Failure Log section when using brave://gcm-internals/ to debug
It's almost useless, but if your payload is undefined you can at least receive the event
Same issue
Hello guys, Just letting you know that I've built from scratch a webpush package compatible with deno: https://jsr.io/@negrel/webpush Hope this can help.
Just tried out the original reproduction and it works in Deno 1.45.2. I don't get the described permission error anymore 🎉
It doesn't seem to be resolved. I have my own repo I'm testing with, but also using the repo above I'm getting the same decryption errors
deno 1.45.2 (release, aarch64-apple-darwin)
v8 12.7.224.12
typescript 5.5.2
Here's the issue on web-push side https://github.com/web-push-libs/web-push/issues/904 but I think it needs to be fixed in deno
I stand corrected. I mistakenly only checked the logs in Chrome DevTools and didn't look at chrome://gcm-internals/
We did a rewrite of the crypto code recently. This seems to be working now - not seeing any logs in chrome://gcm-internals/
deno serve --port 1234 --unstable -A ./main_deno.ts
@littledivy, I'm pretty sure this is still unresolved - you need to test on localhost as 0.0.0.0 is not considered a secure context. Were you receiving notifications?
Merged a fix and the push messages are now being delivered and decrypted.
Try it out with deno upgrade --canary - it will be available in an hour or two.
Amazing, thank you! Will hope to see this in production soon.