web-push
web-push copied to clipboard
the key in the authorization header does not correspond to the sender ID used to subscribe this user. Please ensure you are using the correct sender ID and server Key from the Firebase console
Operating System: Linux Node Version: 14.17.3 web-push Version: 3.4.5
Please select any browsers that you are experiencing problems with:
- [ x] Chrome
- [x ] Firefox
- [ ] Opera for Android
- [ ] Samsung Internet Browser
- [ ]
- [ ] Other
Problem
the key in the authorization header does not correspond to the sender ID used to subscribe this user. Please ensure you are using the correct sender ID and server Key from the Firebase console. i am using the method webpush.setGCMAPIKey(process.env.FCM_API_KEY as string) to set the server key; but how can i set the sender ID? how can i set the project with firebase cloud messaging?
Please explain what behaviour you are seeing. when i try to send a notification i get the message: the key in the authorization header does not correspond to the sender ID used to subscribe this user. Please ensure you are using the correct sender ID and server Key from the Firebase console
Expected
i expect the web push library send the request to FCM and i get the notification on my browser.
Please explain what you expected to happen
Features Used
- [ ] VAPID Support
- [ x] GCM API Key
- [ ] Sending with Payload
Example / Reproduce Case
Please provide a code sample that reproduces the issue. If there is a repository that reproduces the issue please put the link here.
Other
Please put any remaining notes here.
Hi @JhonCordoba, i am also facing this issue any solution?
Hey man, no, at end i use the Service Worker API, without additional libraries
Hey man, no, at end i use the Service Worker API, without additional libraries
Hey, I am also facing same problem. Can you please how to use Service Worker API without any additional library? I was using web-push library, it was working fine until a month ago, now it has stopped working.