Notifications API
The browser API for showing system-level notifications outside the page, which a service worker calls with registration.showNotification().
In more detail
A notification can include a title, body, icon and action buttons. Users must grant permission first; ask at a meaningful moment rather than on page load.
Related terms
- 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.
- 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