TapCub is live — analytics, insights and live chat, free on one platform
Growth & Marketing

How to Send Push Notifications: Setup, Segments and Send Times

To send push notifications you need permission, an address for the browser or device, and a sender. Setup steps for web and mobile, then segment and send-time choices judged by open and opt-out rates, with a campaign you can recompute.

Emma Collins Published Nov 22, 2026 11 min read Growth & Marketing
Sample data: 9,200 delivered; 1,800 recipients viewed pricing in the last 14 days and opened at 9.0% (162), the other 7,400 at 4.0% (298). The segment also opted out less: 0.17% against 0.36%.Sample data

To send push notifications you need three things: the person's permission, an address for their browser or device, and a sender that uses it. Set those up for web or mobile, then choose segments and send times by comparing open and opt-out rates. In the sample below, a behaviour segment opened at 9.0% against 4.0% for everyone else, and an evening send beat a morning send 5.5% to 4.5%.

What you will learn

  • Permission, address and sender must all exist; ask after a user action, not on first load
  • Judge segments and send times with open rate and opt-out rate together, inside each segment
  • Test send times on random halves and repeat on a second date before changing your schedule

What does it take to send push notifications?

Three things must exist before a push notification can reach a screen: the person's permission, an address for their device or browser, and a sender (your server or a messaging tool) that uses that address. Everything else, segmentation, timing and copy, is decided after those three are in place.

PieceWeb pushAndroid appiOS app
PermissionBrowser prompt, started by a clickRuntime permission on Android 13 and higherSystem prompt through the notification framework
AddressA push subscription created by a service workerA device token from the platform's push serviceA device token from the platform's push service
SenderYour server or tool posts to the subscription endpointYour server or tool posts to the push serviceYour server or tool posts to the push service
Extra ruleSite must be served over HTTPS; on iPhone and iPad it works for web apps added to the Home ScreenNotifications are off by default for new installs on Android 13Ask at a moment the person understands

If you only want to send, a messaging tool handles the sender and stores addresses for you. If you build it yourself, you own the three pieces. This guide covers the setup path for web and mobile, then how to choose segments and send times and judge them by open and opt-out rates. For rules about what to write and how often, see push notification best practices; for the definition, see push notification.

How do you set up web push?

  1. Serve the site over HTTPS and register a service worker. The Push API requires an active service worker to receive messages, and the service worker shows the notification when one arrives.
  2. Ask for permission at a useful moment, from a user action. The browser prompt should follow a click, such as a "Notify me about price drops" button, not appear on page load.
  3. Create a push subscription. When the person agrees, the browser returns a subscription containing an endpoint and an encryption key. Send it to your server and store it against the person or browser.
  4. Treat the endpoint as a secret. Knowing the endpoint is all that is needed to send a message to that browser, so protect it, and defend your subscribe route against cross-site request forgery.
  5. Send a message and handle it in the service worker. Your server posts the payload to the endpoint; the service worker shows the notification and handles the click.
  6. Handle expiry. Subscriptions can expire or be invalidated, so listen for the subscription-change event and refresh your stored address.

iPhone and iPad have an extra requirement. Since iOS and iPadOS 16.4, Web Push works for web apps that have been added to the Home Screen, the permission request must be in response to direct user interaction, and it uses the standard Push API, Notifications API and service workers. Plan for the fact that on iPhone the audience you can reach is the people who installed the web app, not every visitor.

How do you set up push in a mobile app?

  1. Add the platform's push capability to the app and obtain a device token for each install.
  2. Ask for permission in context. On Android 13 and higher, notifications are off by default for new installs and the app must request the POST_NOTIFICATIONS permission; if the app targets Android 13 or later it controls when the dialog appears. Google's guidance is to let people explore first and trigger the prompt from an action such as tapping an alert bell, following an account or submitting an order. Another recommended pattern is to wait until the third or fourth launch.
  3. Send the token to your server and store it with the user ID, platform and app version.
  4. Check before you send. On Android, call the platform check that tells you whether the person has notifications enabled; people can revoke the permission at any time.
  5. Send the payload through the platform's push service from your server or messaging tool, and keep a record of what you sent.

A denied prompt is hard to undo: on Android 13 and above, a person who selects "Don't allow" has blocked notification channels until they change the setting in system settings. Explaining the benefit before the prompt protects the opt-in rate.

When should you ask for permission?

The opt-in rate is permissions granted ÷ prompts shown. Where you ask drives it far more than how you word it.

When to askWhy it worksRisk
After the person takes an action that benefits from alerts (order placed, follow, price watch)The benefit is obviousFewer prompts shown
After a few visits or launchesThe person knows the productSome never return
On first page load or first launchReaches everyoneLowest opt-in and an unrecoverable denial

Sample data: a store shows its own pre-prompt explainer to 20,000 visitors who placed an order or saved an item, and 1,400 grant permission, an opt-in rate of 1,400 ÷ 20,000 = 7.0%. Track the denial rate too: a denial rate that climbs after a change means the prompt moved to the wrong moment.

How do you segment push notifications?

Send to a group defined by behaviour rather than to everyone. A segment is a rule: did or did not do an action, in a time window, a number of times.

Sample data: a price-drop push goes to 10,000 subscribers; 9,200 are delivered. 1,800 of the delivered recipients viewed the pricing page in the last 14 days (the segment); 7,400 did not.

GroupDeliveredOpensOpen rateOpt-outsOpt-out rate
Viewed pricing in last 14 days1,8001629.0%30.17%
Everyone else7,4002984.0%270.36%
All delivered9,2004605.0%300.33%

The segment opens at 9.0% against 4.0%, and fewer of them opt out (0.17% against 0.36%). The overall 5.0% hides that difference, which is why the metric per segment matters: the next send should go to the segment with the price-drop message and the others should get something different, or nothing.

app.tapcub.com

Open rate by group

sample data, opens ÷ delivered
Viewed pricing in last 14 days9.0%
All delivered5.0%
Everyone else4.0%
Sample data
Sample data: 9,200 delivered; 1,800 recipients viewed pricing in the last 14 days and opened at 9.0% (162), the other 7,400 at 4.0% (298). The segment also opted out less: 0.17% against 0.36%.

How do you choose send times?

Test, do not guess. Split an audience of similar people at random, send at two times and compare open rates and opt-outs.

Sample data: 4,600 delivered subscribers receive the same push at 9:00 and another 4,600 at 19:00. At 9:00, 207 open (4.5%). At 19:00, 253 open (5.5%). Difference: 1.0 point. A two-proportion test gives z ≈ 2.20 and p ≈ 0.03, so a gap this large would happen by chance about 3 times in 100, which is evidence that the evening time is better for this audience. Check opt-outs for both groups before choosing; a time that opens more but drives more opt-outs is not better.

Repeat the test on a second date. A single result can be a coincidence, and the best time can differ by segment and time zone, so run the comparison inside each segment that matters.

Which metrics tell you push is working?

MetricFormulaSampleWhat it tells you
Opt-in ratePermissions granted ÷ prompts shown1,400 ÷ 20,000 = 7.0%Whether the ask works
Delivery rateDelivered ÷ sent9,200 ÷ 10,000 = 92.0%Whether addresses are valid and reachable
Open rateOpens ÷ delivered460 ÷ 9,200 = 5.0%Whether the message earns attention
Opt-out rateOpt-outs ÷ delivered30 ÷ 9,200 = 0.33%Whether the cost to the relationship is rising
Click-to-conversionOrders or sign-ups ÷ opensYour own eventsWhether opens lead to the outcome

Opens alone can mislead. If opens go up and opt-outs go up with them, you are buying attention with the audience's patience. Read open rate and opt-out rate together, and compare people who opted in with people who did not on a downstream outcome such as retention or orders.

MetricFormulaSample
Opt-in ratePermissions granted ÷ prompts shown1,400 ÷ 20,000 = 7.0%
Delivery rateDelivered ÷ sent9,200 ÷ 10,000 = 92.0%
Open rateOpens ÷ delivered460 ÷ 9,200 = 5.0%
Opt-out rateOpt-outs ÷ delivered30 ÷ 9,200 = 0.33%

Sample data from one campaign; compare your own rates by segment and over time.

What should you check before the first send?

  • Permission is requested after a user action, with an explanation.
  • The stored address is tied to a user or browser and refreshed when it expires.
  • Messages carry a link tagged with campaign parameters so visits can be attributed.
  • Segments are defined as rules, and the first send goes to a small group.
  • A target for opt-out rate is written down, with a rule such as pausing a segment that exceeds it.
  • Quiet hours and frequency limits are set by the person's time zone.
  • You can see delivery, open and opt-out counts for each campaign.

How to measure push notifications in TapCub

TapCub does not send push notifications, store device tokens or schedule messages. It measures what happens on your site or in your app after the person taps. Use the price-drop campaign above as the example.

  1. Tag every push link. Add UTM parameters, for example source push, medium notification and a campaign name per send. In Web analytics › Sources, the UTM tab splits visitors, sessions, bounce and duration by campaign, so you can compare the 9:00 and 19:00 sends.
  2. Record opt-in and opt-out as events. Send custom events such as push_opt_in and push_opt_out from your site or app, so you can count them in All-platform analytics › Behavior › Event analysis.
  3. Define the segment once. In All-platform analytics › Users › Segments & tags, create a rule segment such as "viewed pricing in the last 14 days". TapCub refreshes rule segments daily or on demand and keeps a 30-day size trend; if a webhook is configured, it emits membership changes that your own messaging tool can use. Anonymous visitors have no profile and never join a segment.
  4. Compare opted-in users with the rest. Use the segment as a group in All-platform analytics › Behavior › Behavior analysis to compare retention or a funnel; for apps, App analytics › Users › Retention shows how many come back.
  5. Mark each send. Add a date annotation in Configuration › Annotations on the send date so spikes in sessions are easy to explain.

Delivery and open counts live with your push provider, so join them to TapCub's results yourself.

FAQ

How do I send a push notification to my website visitors?

Serve the site over HTTPS, register a service worker, ask for permission after a user action, store the subscription the browser returns and send messages to its endpoint from your server or a messaging tool.

Can I send push notifications to iPhone users from a website?

Yes, on iOS and iPadOS 16.4 and later, for web apps that have been added to the Home Screen. The permission request must come from a direct user action.

When should an app ask for notification permission?

At a moment the benefit is clear, such as after an order, a follow or a tap on an alert bell. On Android 13 and higher the app controls the timing and notifications are off until permission is granted.

What is a good push notification open rate?

There is no universal number, so compare against your own history by segment. In the sample, 5.0% overall hid 9.0% for a behaviour segment and 4.0% for everyone else.

How do I know if push is annoying people?

Watch the opt-out rate and the permission-revoked count beside the open rate. If opens rise and opt-outs rise with them, reduce frequency or narrow the segment.

Sources

  • WebKit. Web Push for Web Apps on iOS and iPadOS — Home Screen web apps, user-gesture permission request, Push API and Notifications API in iOS and iPadOS 16.4. Checked 2026-11-22.
  • Android Developers. Notification runtime permission — POST_NOTIFICATIONS on Android 13 (API 33), off by default for new installs, requesting in context. Checked 2026-11-22.
  • MDN Web Docs. Push API — service worker, push subscription with endpoint and key, subscription changes. Checked 2026-11-22.

Was this article helpful?

We use your answers to fix and expand this page.

Emma Collins

Product Analyst

Focuses on event analysis, conversion funnels, and retention, using clear metric definitions and structured analysis to explain product performance.

See what push traffic does on your site

UTM campaigns, events, segments and retention in one place, so you can judge each send by what people do after the tap.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics