How we built it

NotificationOptions.requireInteraction, and auto-minimize timeout

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.

Demo

Documentation

Specification

Established standard

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 47

Consensus & Standardization

  • Public support
  • No public signals
  • No public signals
  • Strongly positive

Owner

Last updated on 2016-03-03