To make a web push notification stay on screen until clicked, pass requireInteraction: true to showNotification() in your service worker. Chrome, Edge and Opera on desktop then keep the notification visible until the user clicks or dismisses it. Safari ignores the option, Firefox support is limited, and mobile systems handle it their own way.
Most web push notifications slide in, sit for a few seconds and then disappear into the notification centre. That’s fine for a blog post. However, for a webinar starting in five minutes or a price alert, you may want the message to stay put. In this guide I explain how the sticky option works, where it’s supported, and when I’d actually use it.
How do you make a push notification stay on screen?
You make a push notification stay on screen by setting the requireInteraction option to true when the service worker displays it. This is part of the WHATWG Notifications standard, which says that on devices with a large enough screen, such a notification “should remain readily available until the end user activates or dismisses” it.
The option lives in the options object of ServiceWorkerRegistration.showNotification(). So the change happens in your service worker’s push handler, not in the subscription code. If your service worker already shows notifications, it’s a one-line change.
Key facts at a glance:
- Option: requireInteraction (boolean, default false).
- Where it goes: the options object of showNotification() in the service worker.
- Works best on: Chrome, Edge and Opera on desktop.
- Ignored by: Safari on macOS and iPhone, per MDN compatibility data checked on November 25, 2026.
- Effect on mobile: little or none, because phones keep notifications in a shade anyway.
What does the code look like?
The code adds requireInteraction: true to the same showNotification() call you already use. Here’s a minimal push handler that reads a JSON payload, shows a sticky notification and opens a link on click:
self.addEventListener('push', (event) => {
const data = event.data ? event.data.json() : {};
event.waitUntil(
self.registration.showNotification(data.title, {
body: data.body,
icon: data.icon,
tag: data.tag,
data: { url: data.url },
requireInteraction: data.sticky === true
})
);
});
self.addEventListener('notificationclick', (event) => {
event.notification.close();
event.waitUntil(clients.openWindow(event.notification.data.url));
});Notice that the sticky flag comes from the payload. That way, you decide per campaign whether a message should stay on screen, instead of making every notification sticky. Also, the click handler closes the notification before opening the page, so it doesn’t linger after the user acts on it.
If you’re new to the push handler itself, my guide to the service worker for web push walks through registration, subscription and display.
Which browsers support requireInteraction?
Chromium browsers on desktop support requireInteraction well, while Safari doesn’t support it at all. The table below summarises MDN’s browser compatibility data, checked on November 25, 2026:
| Browser | requireInteraction support | What users see |
|---|---|---|
| Chrome (desktop) | Yes, since version 47 | Notification stays until clicked or closed |
| Edge and Opera (desktop) | Yes (Chromium) | Same as Chrome |
| Firefox (desktop) | Partial, Windows only per MDN | Usually disappears after a few seconds elsewhere |
| Safari (macOS) | No | Follows the macOS banner or alert style |
| Safari on iPhone and iPad | No | Normal iOS notification |
| Chrome on Android | Accepted | Notification stays in the shade like any other |
So treat requireInteraction as a progressive enhancement. It improves visibility for part of your audience, but your message still has to work as a normal notification for everyone else.
Does the operating system have the final say?
Yes, the operating system and the user’s settings can still override what the browser asks for. On macOS, for example, users choose between “Banners”, which disappear automatically, and “Alerts”, which stay until dismissed, for each app in Notification settings. On Windows and macOS, focus or Do Not Disturb modes can also hide notifications for a while.
That’s why I never promise a client that a notification “will stay on screen”. The accurate statement is that the site asks for it, and supported browsers honour the request when the system allows. If notifications don’t appear at all, my troubleshooting guide on web push notifications not showing covers the usual system settings.
When should a notification stay on screen?
A notification should stay on screen only when acting late makes it useless. Sticky notifications ask for attention, so I save them for messages where the user would thank you for the interruption.
Good use cases:
- Live events: a webinar, live stream or sale that starts in the next few minutes.
- Time-limited alerts: a price drop or back-in-stock alert that a subscriber requested.
- Account or order updates: a delivery arriving today or an action the user must complete.
- Breaking news: a major story for subscribers who opted in to urgent alerts.
Poor use cases are routine blog posts, weekly digests and evergreen promotions. If every notification sticks, people learn to dismiss them all, and some will turn notifications off. My post on why push subscribers unsubscribe explains how this kind of fatigue builds.
How do you stop sticky notifications from piling up?
You stop sticky notifications from piling up by giving related messages the same tag. When a new notification arrives with a tag that matches one already on screen, the browser replaces the old one instead of adding another. As a result, a live score or countdown shows one up-to-date card rather than five.
A few more habits help:
- Keep sticky messages rare, for example one per day at most for any subscriber.
- Set a sensible time to live (TTL) on the push request, so a “starting now” alert doesn’t arrive hours late.
- Close the notification in your notificationclick handler, as in the code above.
- Test on desktop Chrome and on a phone before you send to everyone.
My guide on how to update or recall a web push notification goes deeper into tags and replacement.
Can you add buttons to a sticky notification?
Yes, you can combine requireInteraction with action buttons in browsers that support both. Chrome and Edge on desktop show up to two action buttons, so a sticky webinar reminder could offer “Join now” and “Remind me later”. Each button fires the notificationclick event with its own action name.
That said, buttons have the same support gaps as requireInteraction, so Safari users see a plain notification. My guide to push notification CTA buttons covers the code and the support table.
Where LaraPush fits
LaraPush is a self-hosted web push panel you install on your own VPS, from $499 one-time (check LaraPush pricing for the current price). It handles subscriptions, campaigns with up to two CTA buttons, scheduling, segmentation and click tracking, and delivers through Firebase Cloud Messaging. Display behaviour such as requireInteraction still depends on each browser, exactly as described above, so check the LaraPush setup guide or ask support before relying on a specific display option. The trade-offs are that there’s no free plan and you run the server yourself. For a wider view of tools, see my list of the best push notification services.
Frequently asked questions
There’s no fixed standard. Browsers and operating systems decide, and most desktop banners disappear after a few seconds before moving into the notification centre. The notification stays in that centre until the user clears it. Setting requireInteraction to true asks supported browsers to keep it on screen instead.
No. According to MDN compatibility data checked on November 25, 2026, Safari on iPhone and iPad doesn’t support requireInteraction. Web push on iPhone already needs iOS 16.4 or later and a site added to the Home Screen, and notifications follow normal iOS display rules.
You can, but I don’t recommend it. Sticky notifications interrupt people more than normal ones, so using them for routine posts trains subscribers to dismiss everything. Save them for urgent, time-limited messages and pass the flag per campaign in your payload.
The browser may not support requireInteraction, as with Safari, or the operating system may override it. On macOS, the Banners style hides notifications automatically, and focus or Do Not Disturb modes can suppress them. Check the browser first, then the system notification settings.
There’s no reliable public benchmark that isolates requireInteraction, so I won’t quote a number. It makes a notification more visible on supported desktops, which can help urgent messages. Test it yourself by comparing clicks and unsubscribes on similar campaigns with and without the flag.




