Guides

What are web push notifications?

A plain explanation of browser push: what a visitor sees, what happens behind the scenes, and when it is worth adding to a website.

Short answerA web push notification is a message a website sends to a person’s browser or phone after they click Allow. It appears even when the site isn’t open. It needs no app, no email address and no phone number, only the browser’s permission.

Web push notifications, defined

A web push notification is a short message from a website that appears in the same place as app notifications: the corner of a desktop screen, the Android notification shade, or the iPhone lock screen. The visitor agrees to receive them by clicking Allow when the site asks. After that, the site can reach them even when its tab is closed.

Each notification usually has a title, a line or two of text, a small icon and a link. Chrome and Edge can also show a large image and up to two buttons.

How web push works behind the scenes

Four pieces are involved. None of them is an app store or an email provider.

  1. The service worker. A small JavaScript file the website registers in the browser. It keeps running in the background after the tab closes, and it is what actually displays the notification.
  2. The subscription. When the visitor allows notifications, the browser asks its push service for an address. The result is an endpoint URL plus two encryption keys. The website stores this subscription; it contains no name or email.
  3. The push service. Each browser vendor runs one: Google for Chrome, Mozilla for Firefox, Apple for Safari, Microsoft for Edge. They relay messages to devices for free.
  4. The sender. The website’s server (or a service like SuperWicket) encrypts the message for that subscription, signs the request with its VAPID key, and posts it to the endpoint. The push service delivers it when the device is online.

The message is encrypted end to end, so the push service relays it without being able to read it. If you want the code version of this, see the service worker example.

Which browsers and devices support it

PlatformSupportedCondition
Chrome, Edge, Opera, Brave on Windows, macOS, LinuxYesThe browser must be running (it can be in the background)
Chrome, Firefox, Samsung Internet on AndroidYesNone
Firefox on desktopYesNone
Safari on macOS 13 Ventura or laterYesNone
iPhone and iPad, iOS/iPadOS 16.4+YesOnly after the visitor adds the site to the Home Screen. Details
Private or Incognito windowsNoSubscriptions aren’t kept

How it compares with email, SMS and app push

  • Email needs an address and competes with a crowded inbox, but it reaches everyone and carries long content. Push needs only a click and appears instantly. See web push vs email.
  • SMS needs a phone number, costs money per message and is tightly regulated. Web push is free to send and anonymous.
  • Native app push needs people to install your app. Web push works from your website.

What web push is good for

Push works best for short, timely messages to people who already like your site:

  • A new article or video, sent automatically from your feed (RSS to push).
  • A cart left behind, a price drop, an item back in stock (ecommerce examples).
  • A job finished, a reply received, a trial ending (SaaS examples).
  • An event or live stream starting now.

It is a poor fit for long newsletters, receipts that must be kept, or anything legally required to reach every customer. Keep email for those.

Permission is everything

A browser shows its permission box once. If the visitor clicks Block, the site can’t ask again until they dig into their settings. That is why most sites show their own small “soft” prompt first and only trigger the browser’s box for people who said yes. More in opt-in prompt best practices.

What it costs

The browser vendors don’t charge for delivery. You pay for the software that collects subscribers, stores subscriptions and sends messages. That can be your own server running an open-source library, or a service. SuperWicket’s Free plan covers 500 subscribers and 5,000 sends a month; paid plans start at $9 a month. See pricing.

Try it in your browser

The quickest way to understand web push is to receive one. The push tester subscribes this browser and sends you a real notification with any text you like.

Frequently asked questions

Do web push notifications need an app?

No. They are delivered by the browser (Chrome, Firefox, Edge, Safari) using a service worker your website registers. On iPhone and iPad the site must be added to the Home Screen first, on iOS 16.4 or later.

Do subscribers have to give an email address?

No. The browser creates an anonymous subscription (an endpoint URL and two encryption keys). The website never learns the visitor’s name or email from it.

Are web push notifications free to send?

The browser push services run by Google, Mozilla, Apple and Microsoft don’t charge senders. You pay for the software that stores subscriptions and sends messages, or you run your own server.

Can people unsubscribe?

Yes, at any time from the browser’s site settings or the notification itself. Unsubscribed endpoints stop working and a good sender removes them automatically.

Try it on your own site

The Free plan has no time limit and needs no card. Add one script tag, or share a hosted subscribe page if you can’t upload files.