← Back to release summary

Notification.data and ServiceWorkerRegistration.getNotifications()

Category
Service Worker
Type
New or changed feature
Status
Enabled by default (Chrome 44)
Intent stage
None

Summary

Support for the Notification.data attribute, which allows authors to attach some (immutable) data to a persistent Web Notification they are displaying. Support for the static ServiceWorkerRegistration.getNotifications() method for getting all existing persistent notifications created by the current origin.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/notification/data https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications

Samples: https://github.com/GoogleChrome/samples/tree/gh-pages/push-messaging-and-notifications

View on chromestatus.com