← Back to release summary

NotificationOptions.requireInteraction, and auto-minimize timeout

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

Summary

Support for the NotificationOptions.requireInteraction property, letting authors hint that a notification should remain readily available until the user clicks or dismisses it. When omitted, Chrome desktop will start to close* notifications after ~20 seconds (rather than the toast remaining permanently on-screen); Chrome for Android will be unaffected, since the platform requires that notifications are always minimized there. *Chrome OS only - auto-minimize to the notification center.

Standards & signals

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

Samples: https://googlechrome.github.io/samples/notifications/requireInteraction.html

View on chromestatus.com