Glossary · Web push
VAPID
VAPID (Voluntary Application Server Identification) is the way a server identifies itself to browser push services. You create one key pair; browsers subscribe with the public key, and every push you send carries a short token signed with the private key.
Also called application server keys, VAPID keys
Subscribe once, push many times
The website registers a service worker, then asks the browser to subscribe, passing your VAPID public key as applicationServerKey. After the person allows notifications, the browser returns a subscription: an endpoint URL on its push service (Google's for Chrome, Mozilla's for Firefox, Apple's for Safari, Microsoft's for Edge) and two keys for encrypting messages to that browser. To send, your server posts to the endpoint with a JWT signed by your private key, and encrypts the payload with the subscription's keys. The push service checks the signature, then wakes the service worker, which shows the notification.
Once
-
Website + service worker
-
Browser
subscribe(applicationServerKey)
-
Subscription
endpoint + p256dh + auth
-
Your server stores it
Each send
-
Your server
sign JWT (private key), encrypt payload
-
Browser push service
verify signature
-
Service worker
push event → showNotification
Once: the website and service worker call subscribe with the application server key, the browser returns a subscription with endpoint, p256dh and auth, and your server stores it. Each send: your server signs a JWT with the private key and encrypts the payload, the browser push service verifies the signature, and the service worker's push event shows the notification. The private key stays on your server.
The browser side
const reg = await navigator.serviceWorker.register('/sw.js');
const sub = await reg.pushManager.subscribe({
userVisibleOnly: true,
applicationServerKey: VAPID_PUBLIC_KEY, // base64url, P-256
});
await fetch('/subscriptions', { method: 'POST', body: JSON.stringify(sub) }); The mistakes that fail quietly
- Rotating the keys. Every subscription is bound to the public key it was created with. Change the pair and existing subscriptions stop working until each browser subscribes again. Keep one pair per site, and keep it safe.
- Leaking the private key. Anyone with it can sign pushes to your subscribers. It belongs on the server, never in front-end code.
- Ignoring 404 and 410. The push service answers 404 or 410 when a subscription has expired or been removed. Delete it.
- Forgetting iOS. Since iOS 16.4, web push works for web apps added to the Home Screen, not for Safari tabs, and only after a user gesture (WebKit).
- No TTL. The
TTLheader is required on every request.
In Oricato
Web push is one of Oricato's three channels, in the same composer as mobile push and email: one message, its language versions, and each person's local time. Oricato keeps the private key on your account, signs and encrypts each push, and retires a subscription when its push service says it's gone.
- Reports show Sent, Delivered and Opened for web push next to mobile push and email.
- Our own website never asks you for notification permission.
Composer with the web push channel selected and a preview of a weekly recap notification, with language tabs English, Español, Deutsch and Japanese.
Related terms
- Service workerthe background script that receives the push.
- Permission promptwhen browsers let you ask.
Sources RFC 8292, RFC 8030, RFC 8291; WebKit, "Web Push for Web Apps on iOS and iPadOS" (read Oct 16, 2026).