Push API
A browser API that lets a server send messages to a service worker through a push service, even when none of the site's pages are open.
In more detail
The page asks permission and creates a PushSubscription, an endpoint URL on the browser's push service. The server posts to that endpoint, and the service worker wakes up with a push event, usually to show a notification.
Related terms
- push service — A server run by the browser vendor that receives push messages from websites and delivers them to the right browser.
- Notifications API — The browser API for showing system-level notifications outside the page, which a service worker calls with registration.showNotification().
- service worker — A script the browser runs in the background, separate from pages, that can intercept a site's network requests and act as a programmable proxy.
Taught in
- Background Sync, Push Notifications And PWA Manifests — Frontend Architecture & Web Platform