← Back to release summary

Notification action buttons

Category
Realtime / Communication
Type
New or changed feature
Status
Enabled by default (Chrome 48)
Intent stage
None

Summary

Support for the NotificationOptions.actions, Notification.actions and Notification.maxActions attributes, which allow authors to show action buttons alongside a notification. These allow users to quickly handle the most common tasks for a particular notification, without having to open the originating website. As of Chrome 53, the `Notification.actions` property is exposed as well.

Standards & signals

Docs: https://notifications.spec.whatwg.org/#using-actions https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent/action

Samples: https://tests.peter.sh/notification-generator/#actions=3

View on chromestatus.com