Definition
requireInteraction (Notification option)
requireInteraction is a boolean option, e.g. showNotification("Incoming call", { requireInteraction: true }), that prevents the browser from automatically dismissing the notification after its default timeout (a few seconds on most desktop platforms). The notification instead stays visible until the user clicks it, clicks an action, or closes it manually.
This is intended for time-sensitive or high-importance alerts — an incoming call, a critical system status — where auto-dismissal risks the user never seeing the message at all.
requireInteraction is primarily a desktop-platform concept; many mobile OS notification shades already persist notifications until swiped away regardless of this flag, so its practical effect is most visible on Windows and macOS Chrome.
Overusing requireInteraction for routine notifications trains users to treat every alert from your app as urgent, undermining its usefulness for the cases that actually need it — Google's own notification UX guidance recommends reserving it for genuinely actionable, time-critical events.
The option is part of the standard Notification API options object documented at https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction.