Overview
The Notifications API allows web applications to show alerts outside the context of the browser window. These notifications typically appear in the operating system's notification center.
Key Features
- Permission Model: Users must explicitly grant permission before an app can show notifications.
- Customization: Notifications can include titles, body text, icons, and action buttons.
- Interaction: Developers can listen for clicks on the notification to perform actions (e.g., opening a specific page).
Context
While it can be used from a regular web page, it is most powerful when used from a Service Worker in response to a message from the Push API.