Glossary · Mobile push
APNs (Apple Push Notification service)
APNs is Apple's service that delivers remote notifications to iPhone, iPad, Mac and Apple Watch. Your server, or a service such as Firebase Cloud Messaging, sends each notification to APNs over HTTP/2, and Apple delivers it to the device.
Also called Apple Push Notification service, Apple push
Four parties, one path
When your app starts, it asks iOS to register for remote notifications. iOS gets a device token from APNs and hands it to your app, which sends it to your server. The token is the address for that app on that device. To send, your server opens an HTTP/2 connection to Apple and posts a JSON payload to /3/device/<token>. Apple checks your credentials, holds the notification if the device is offline (only the latest one per app, unless you set a collapse ID), and delivers it when the device is reachable. Apple runs two environments. Development builds get sandbox tokens (api.sandbox.push.apple.com); App Store and TestFlight builds get production tokens (api.push.apple.com). A token only works in the environment it came from.
-
Your server
.p8 token or certificate
-
APNs
sandbox: development builds · production: App Store and TestFlight
-
iPhone
Lingora app
device token, once: iPhone → your server
Your server sends over HTTP/2 with a .p8 token or certificate to APNs, which delivers to the iPhone running the Lingora app. The device token travels once from the iPhone to your server. APNs has a sandbox for development builds and production for App Store and TestFlight.
.p8 key or certificate
- Token-based (.p8 key). One signing key per Apple developer team works for all of that team's apps and doesn't expire unless you revoke it. Your server signs a short JSON Web Token with it and refreshes it at least once an hour. This is what most teams use today.
- Certificate-based (.p12). One certificate per app, renewed every year. When it lapses, sends fail until someone uploads a new one, which is the classic "push stopped on a Saturday" incident.
What a send looks like
Each notification is one HTTP/2 request. The headers tell APNs what kind of notification it is and how to treat it; the body carries the aps dictionary.
curl --http2 \
-H "authorization: bearer $APNS_JWT" \
-H "apns-topic: com.lingora.app" \
-H "apns-push-type: alert" \
-H "apns-priority: 10" \
-H "apns-expiration: 0" \
-d '{"aps":{"alert":{"title":"Your streak is waiting","body":"Five minutes keeps a 12-day streak alive."},"sound":"default"}}' \
https://api.sandbox.push.apple.com/3/device/$DEVICE_TOKEN apns-topic is your app's bundle ID. apns-push-type is required on current iOS versions: alert for visible notifications, background for silent ones. apns-expiration: 0 means deliver now or drop it.
Where iOS sends usually fail
BadDeviceToken(400). Usually a sandbox token sent to production, or the reverse.Unregistered(410). The token is no longer active for that app, usually because the app was uninstalled. Stop sending to it.ExpiredProviderToken(403). Your JWT is older than an hour. Refresh it, but not more often than every 20 minutes.TopicDisallowed/DeviceTokenNotForTopic. The bundle ID inapns-topicdoesn't match the app the token belongs to.- Payload too large. APNs allows 4,096 bytes for a standard notification.
In Oricato
Oricato reaches iOS through Firebase Cloud Messaging. You upload your APNs key to your own Firebase project once; FCM forwards each notification to APNs with it. So there's one credential path for Android and iOS, and your iOS app keeps Firebase Messaging next to the Oricato SDK.
- Every Oricato iOS notification is sent as
alertwithmutable-content: 1, so the Notification Service Extension can add an image and confirm delivery. - Your message's expiry becomes
apns-expiration, and its interruption level setsapns-priority: 5 for passive, 10 for everything else. - When FCM reports an APNs authentication error, the dashboard's health check says so in plain words and tells you which key to replace.
Dashboard health card warning that iOS sends are failing because the APNs key in the Firebase project was rejected, with the fix.
Related terms
- FCMthe Google service Oricato sends through, for Android and iOS.
- Notification Service Extensionthe iOS extension that edits a notification before it's shown.
- Interruption levelhow much an iOS notification may interrupt.
Sources Apple Developer Documentation, "Sending notification requests to APNs" and "Establishing a token-based connection to APNs" (read Oct 16, 2026).