Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4862 pages

Help for owners

iPhone visitors never get my website's push notifications

Short answer

When website push notifications are not working on iPhone, the site is usually being used in a Safari tab. WebKit added web push for Home Screen web apps: the site needs a manifest file with display set to standalone or fullscreen, the visitor must add it to the Home Screen, and the permission prompt may only appear after a direct tap, such as a subscribe button.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • Android and desktop visitors get my notifications but iPhone users never do.
  • The subscribe prompt never appears when I open the site in Safari on my iPhone.
  • My push provider says iOS is supported but nothing arrives.
  • Notifications worked in testing on a Mac but not on an iPad.

Why does this happen?

  1. Web push on iOS is for Home Screen web apps

    WebKit's announcement says iOS and iPadOS added support for Web Push to Home Screen web apps. A visitor reading the site in a normal Safari tab is outside that path, so no prompt and no notifications.

  2. The site needs a web app manifest

    WebKit says a site becomes a Home Screen web app when it serves a manifest file whose display member is set to standalone or fullscreen and the user adds it to the Home Screen. Without that manifest setting, the site opens like a bookmark.

  3. Permission must follow a tap

    According to WebKit, a Home Screen web app can ask for permission to send push notifications only in response to direct user interaction, such as tapping a subscribe button. A script that asks as soon as the page loads gets nothing on iPhone.

  4. The server must reach Apple's push service

    WebKit says web push on Apple devices runs through the Apple Push Notification service, and that if you tightly control which push endpoints your server can contact, you must allow URLs from *.push.apple.com. A firewall rule that blocks those addresses stops every iPhone message.

What can I do about it today?

  1. Test web app notifications from the Home ScreenOn your own iPhone, open the site in Safari, use the share menu to add it to the Home Screen, then open it from the new icon and tap your subscribe button.
  2. Watch when the prompt appearsIf the permission request fires on page load rather than after a tap, ask your developer to move it behind a clear button.
  3. Ask your push provider about iOSAsk the service that sends your notifications what it needs for iOS Home Screen web apps, and whether its script asks for permission on a tap.
  4. Tell iPhone visitors how to subscribeAdd a short note near the subscribe button for iPhone users: add the site to the Home Screen first, then subscribe from there.

When should I bring someone in?

  • The site has no web app manifest or service worker yet.
  • Notifications reach Android but iPhone subscriptions fail with no error you can see.
  • You are weighing whether a real app would serve iPhone users better than web push.

How do I handle it?

  1. Check the manifest and service workerI confirm the manifest sets display to standalone or fullscreen and that the service worker registers from the Home Screen version of the site.
  2. Move the permission request behind a tapI change the subscribe flow so the browser prompt only opens after the visitor taps a button, as WebKit requires.
  3. Test the server path to AppleI send a test message from your server and check that requests to Apple's push service are allowed through any firewall or proxy.
  4. Test on real devicesI subscribe from an iPhone and an iPad, lock the screen, send a message and confirm it shows, including when Focus is on.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

Do iPhone users have to install anything to get web push notifications?

They add your site to the Home Screen from Safari, which WebKit calls a Home Screen web app. No App Store download is involved.

Do I need an Apple Developer account for web push on iOS?

WebKit says you do not need to be a member of the Apple Developer Program to use web push.

Can I ask for notification permission when the page loads?

On iPhone, no. WebKit says the request must come in response to direct user interaction, such as tapping a subscribe button.

Can iPhone users manage notifications per website?

Yes. WebKit says notifications from Home Screen web apps work with Focus, and permissions can be managed per web app in Notifications Settings.

Sources

For your developer: the technical fixes

Related help

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.