Questions tagged [vapid]

35 questions
2
votes
1 answer

Web Push : Should I use different VAPID for different instance of a Web Application ?

In case of multiple instances of a web application running, should each instance have their own pair of VAPID keys or it's fine to use only one ?
Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
2
votes
4 answers

Generate a VAPID keys in Java and pass them to JavaScript PushManager

I’m trying to use web push notifications with the web push protocol in my app. In order to use the Push API with VAPID I need an applicationServerKey. The PushManager subscribe method takes a VAPID key (public key alone) as a parameter and will…
Mathi kumar
  • 373
  • 1
  • 4
  • 10
2
votes
1 answer

Generate the VAPID public key in Rails and pass it to Javascript

In order to use the Push API with VAPID I need an applicationServerKey: serviceWorkerRegistration.pushManager.subscribe({ userVisibleOnly: true, applicationServerKey: applicationServerKey // we've got it with getApplicationServerKey() defined…
collimarco
  • 34,231
  • 36
  • 108
  • 142
1
vote
0 answers

php WebPush Notification on iPhone iOS 16.4 beta 4 : 403 Forbidden response: {"reason":"BadJwtToken"}

I'm trying to implement push notification on my pwa app. I use php-web-push library to generate and send notification. Everything is ok on desktop with chrome, edge, or with my samsung on chrome or edge, but when I'm using my iPhone on iOS 16.4 beta…
titome
  • 13
  • 3
1
vote
2 answers

Erlang crypto:sign ecdh prime256v1 - Couldn't get ECDSA private key

I try to implement VAPID Claim, that use ECDH signature with prime256v1 curve. Here the code: test() -> Msg = <<"test">>, {PubKey, PrivKey} = crypto:generate_key(ecdh, prime256v1), ?LOG(notice,"PubKey:~p~n",[PubKey]), ?LOG(notice,"…
Anton Prokofiev
  • 937
  • 10
  • 28
1
vote
0 answers

Webpush::Unauthorized: host: fcm.googleapis.com, #

I am trying to integrate Web Push Notification on the Web Application I am maintaining. I am using this github repo https://github.com/zaru/webpush as my guide. After following what is included in that guide, and run this command at my…
Nico Nisaw
  • 57
  • 1
  • 6
1
vote
1 answer

JWT signature for web push using PHP

I'm trying to send web push notifications using PHP. I have read about how to implement the web push protocol, for instance here. However, I think I don't really get the step where the author of this guide explains how to form the Authorization…
alex-schuster
  • 102
  • 1
  • 7
1
vote
1 answer

How to establish a Apache2 proxy for a localhost:3000 node.js based application

I'm trying to figure out how to link my Apache2 server running on AWS Lightsail to an application I'm housing that uses http://localhost:3000 when activated—it's a simple Node.js based CMS called Vapid. I have the server linked to my domain…
Jacob Buller
  • 137
  • 4
  • 24
1
vote
0 answers

FCM XMPP interface with VAPID

Is is possible to use the Firebase Cloud Messing XMPP interface with VAPID? I tried to do it, but as soon as I register my javascript client with messaging.usePublicVapidKey('') I get a DEVICE_UNREGISTERED error from the FCM XMPP interface. Has…
Mathias
  • 1,076
  • 1
  • 9
  • 10
0
votes
0 answers

sending push notification with vapid keys

can someone assist where i am doing mistake generate vapid keys and store them use push-api and store endpoint, p256dh and auth send push notification using webPush protocol but getting this at 3rd stage Warning: openssl_sign(): Supplied key param…
Sikki
  • 53
  • 1
  • 10
0
votes
1 answer

How do I register new vapidKeys outside FCM console UI

Update As Gerardo pointed out, vapidKey != FCM Token. I finally got things going, though im unsure if this is the best way to do it. This was what i needed to generate a NEW token: try{ if(currentToken) await…
0
votes
0 answers

reactjs + ionic vapid Notification permission on android

Is there a different way to request permission on android devices? This works in reactjs but when i build it with ionic and make an apk it fails on android with: Uncaught ReferenceError: Notification is not defined On the line if…
Node64
  • 1
  • 1
0
votes
1 answer

Erlang : convert vapid keys PEM files to base 64 String format (applicationServerKey)

Hi I like to send FCM push notifications from erlang server app. When user subscribe to FCM notification in browser. swRegistration.pushManager.subscribe() need a public key (applicationServerKey). so to get this key I use openssl and I generate…
Gaddour Mohamed
  • 119
  • 2
  • 9
0
votes
1 answer

Chrome errors "The provided application server key is not a VAPID key."

I'm trying to implement push notifications to my web-app. Sadly, I'm struggling right in the beginning. While I made a good start with Firefox, Chrome errors "The provided application server key is not a VAPID key. Only VAPID keys will be supported…
neuge
  • 31
  • 1
  • 3
0
votes
0 answers

UWP VAPID alternate channels 401

I'm trying to use alternate channels to deliver push notifications to my UWP app. So far, I've got the URI and I've tried to send the push notification using both cURL and pywebpush, but I get a 401 in both cases. I'm using the JS API to get the…
pulsejet
  • 1,101
  • 13
  • 27