Comments (1)
I am using the following Deno version:
deno 1.44.4 (release, x86_64-apple-darwin)
v8 12.6.228.9
typescript 5.4.5
Currently, the reason why it works in Deno environment without a payload is because the browser recipient that receives the notification payload doesn't have anything to decrypt so it'll work fine.
If you add a payload, and run sendNotification
in Deno environment, the browser recipient needs to decrypt the notification payload it but it can't decrypt the payload upon receiving it. This might have to do with Deno's encryption implementation details vs Node.js because it works perfectly fine for me with a payload in a Node.js environment (I tested using node v21.2.0
).
If you are using chrome as the browser recipient and observe the message logs using chrome://gcm-internals
and attempt to use sendNotification
with a payload in a Deno environment (for me, Deno 1.44.4), you will get a AES-GCM decryption failed
in the Message Decryption Failure Log like so:
from web-push.
Related Issues (20)
- Add whitelist for valid browser push service hosts HOT 9
- iOS and Apple HOT 5
- Encoding issues while generating VAPID keys HOT 4
- Body not showing in push notification HOT 2
- package.json: change of node >= 6 to node >= 16 should be a minor version upgrade? HOT 1
- Validation error of protocol is never returned
- Is there a changelog somewhere? HOT 3
- Dependency urlsafe-base64 uses Buffer unsafely (via http-ece) HOT 8
- TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: base64url HOT 2
- Notifications not always shown in MacOS Chrome HOT 1
- How to define target endpoint for notification HOT 1
- Add support for multiple WebPush instances HOT 2
- Calling fetch function for push notifications in service worker causes CORS error HOT 1
- Can webpush push be configured with images like new notification messages? HOT 1
- Unsubscribed due to error DELIVERY_PERMISSION_DENIED
- FCM legacy api shutdown HOT 1
- Will the code still work when FCM API is removed in Jun-2024? HOT 2
- util.inherits is not a function
- [Feature Request] Add Image Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-push.