Questions tagged [vapid]
35 questions
29
votes
2 answers
What is VAPID and why is it useful?
I've just learned about VAPID recently and have been looking around for the reasoning why it exists and what its purpose is. Mozilla's blog post explains that "including VAPID information will let us contact you if we see a problem", but I'm not…

mattrick
- 3,580
- 6
- 27
- 43
10
votes
1 answer
Firebase Cloud Messaging's getToken() only works if I omit the usePublicVapidKey method, why?
I'm having a specific issue with the implementation of Firebase for Firebase Cloud Messaging (FCM):
As you can see in the code below, //messaging.usePublicVapidKey(""); is currently commented. The VAPID key was obtained with…

Andres SK
- 10,779
- 25
- 90
- 152
7
votes
2 answers
Web Push with VAPID: 400/401 Unauthorized Registration
First of all, I've already check these questions, without any luck:
Web Push API Chrome, returning "Unauthorized Registration"
[WebPush][VAPID] Request fails with 400 UnauthorizedRegistration
I am trying to implement web push notifications for a…

Wikiti
- 1,626
- 13
- 21
6
votes
1 answer
Is the VAPID public key the same as applicationServerKey client-side?
On the client-side, to subscribe to web push notifications, you need to call subscribe with the applicationServerKey option, like this:
var serviceWorkerRegistration = ...
serviceWorkerRegistration.pushManager.subscribe({
userVisibleOnly: true,
…

Flimm
- 136,138
- 45
- 251
- 267
5
votes
0 answers
Sending push notification with VAPID authentication and GCM
I am trying to send a push notification to GCM, implementing VAPID in C#, but I am getting a 400 from the server and having some troubles to identify what's the problem.
I tried to follow the docs step by step, but not success.
The ECVault
public…

MrVoid
- 709
- 5
- 19
4
votes
0 answers
Expected OAuth 2 access token while importing VAPID Push subscriptions into Firebase
I am trying to import vapid push subscriptions into firebase. I found some solution in https://developers.google.com/instance-id/reference/server#import_push_subscriptions. It thew following error. Please help me regarding this.
POST :…

MaheshPVM
- 158
- 1
- 13
3
votes
0 answers
How can I validate if the private and public VAPID keys are the right pair?
After running
npm install -g web-push
web-push generate-vapid-keys
It generates a public and private key. Given the two keys, is there any way to verify if they're the right pair? (ie if I have the private key and I might have mistyped the public…

Michael
- 776
- 4
- 19
3
votes
0 answers
How do I send a push notification using Push API with Vapid keys in Postman?
How do I send a push notification in postman, if I have the vapid keys and the subscriber? I have already configured the service worker, so thats not the question. I just want to send a simple request to test if it works.
For demonstrating purposes,…

oemera
- 3,223
- 1
- 19
- 33
3
votes
1 answer
Web Push vapid key generation logic
I have multiple https domains for sending web push notifications. But i will send web push notification from one server. I know why it is use and i read some documents about it. But i didn't see anything about this approach. I generated vapid key…

Murat Karagozgil
- 178
- 1
- 2
- 13
3
votes
2 answers
How to work with "web-push" and "fcm-push" node packages simultaneously?
I've been trying to set up a web push notification server/client architecture using Firebase Cloud Messaging and some node packages. After going through multiple tutorials, I'm really confused.
I tried the "web-push" node package but it requires…

Anirudh Goel
- 134
- 3
- 15
3
votes
3 answers
[WebPush][VAPID] Request fails with 400 UnauthorizedRegistration
I'm working on a pure java implementation for WebPush with VAPID and payload encryption (I've already made implementations for GCM and FCM). However the documentation is still marginal and also the code samples are still not substantial. At this…

Bas Goossen
- 459
- 1
- 7
- 20
2
votes
0 answers
Is VAPID keys are unique to each server for web push notifications?
While implementing push notification (in Django framework), I have used VAPID keys which generated by a website (https://vapidkeys.com/).
Can I use any random dummy text for these keys instead of generating using any other platforms ?
Or does these…

Anoop K George
- 1,605
- 12
- 40
2
votes
2 answers
Lightsail AWS Node.js start forever
I'm experimenting with Vapid CMS and I want to upload a new site to my Amazon Lightsail server. Vapid is dependent on Node.js and I was able to download Vapid to my account and get everything set up with the static IP address I have through AWS.
The…

Jacob Buller
- 137
- 4
- 24
2
votes
1 answer
import VAPID registrations into firebase asks for OAuth2
I'm following the steps described in google doc: import_push_subscriptions and I'm getting the 401 error message when trying to import one VAPID registration via curl:
"Request is missing required authentication credential. Expected OAuth 2 access…

flamencoman
- 43
- 4
2
votes
1 answer
How to send dry run notifications with vapid push notifications
GCM provides a way to send dry run messages to test the request formats, as explain in reference https://developers.google.com/cloud-messaging/http-server-ref. How can the similar dry_run support be achieved with VAPID (FCM) standard?

Mahesh Bale
- 21
- 3