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.
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?
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.
Confirmed by webkit.org
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.
Confirmed by webkit.orgTechnical detail: Chrome says it cannot use an icon from the web app manifest
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.
Confirmed by webkit.org
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.
Confirmed by webkit.orgTechnical detail: FCM cannot reach an iPhone: APNs or web push credentials rejected
What can I do about it today?
- 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.
- 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.
- 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.
- 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?
- 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.
- 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.
- 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.
- 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
THIRD_PARTY_AUTH_ERRORFCM cannot reach an iPhone: APNs or web push credentials rejectedError while trying to use the following icon from the ManifestChrome says it cannot use an icon from the web app manifestA DOMException from importScripts in the service worker (NetworkError, SyntaxError or TypeError)firebase-messaging-sw.js throws a DOMException on importScriptsWe are unable to register the default service worker.Firebase Messaging cannot register its default service worker
Related help
- iPhone Push Stopped After Apple Key Was RevokedApple's key-based push sending signs each request with a key from your developer account, and Apple says a suspected compromised key should be revoked and replaced.
- The certificate that sends my iPhone notifications is expiringWhen it expires, notifications sent with it stop.
- Push Notifications Arrive Late: CausesFirebase says normal-priority messages to a backgrounded app can be delayed, while high-priority ones are attempted immediately even in Doze.
- My Website Shows 403 ForbiddenThe usual reasons are access rules that block some visitors, a missing home page file, or files the web server is not allowed to read.