Glossary · Mobile push
Notification Service Extension
A Notification Service Extension is a small iOS app extension that runs when a notification arrives, before it's shown. It has about 30 seconds to change the content: download an image, decrypt text or tell your server the notification was delivered.
Also called NSE, service extension
A short window between arrival and display
You add the extension as its own target in Xcode. iOS runs it only for visible notifications whose aps payload contains "mutable-content": 1. Your didReceive method gets the notification, changes a copy and hands it back. If time runs out first, iOS calls serviceExtensionTimeWillExpire, and you deliver whatever you have, usually the original text.
- It runs in its own process, even when the app isn't running.
- It doesn't run for silent background pushes.
- It can't touch your app's storage unless both share an App Group.
-
Push arrives
mutable-content: 1
-
Extension: ≈ 30 s
confirm delivery · download image
-
Shown with image
Time’s up → shown as text
A push with mutable-content 1 arrives; the extension has about 30 seconds to confirm delivery and download the image, then the notification is shown with the image. If time runs out, it is shown as text.
Three common jobs
- Images and media. Download an image and attach it, so the notification shows a picture.
- Delivery receipts. Report that the notification reached the device. Without an extension, an iOS app only knows about notifications that were opened, or that arrived while it was in the foreground.
- Decryption or last-second edits. Decrypt end-to-end encrypted text, or fill in a detail that wasn't known at send time.
With the Oricato SDK, it's one line of code
import OricatoPushNotificationService
class NotificationService: OricatoNotificationService {} Add the Notification Service Extension target in Xcode, add the OricatoPushNotificationService package to it, replace the generated class with the line above, and set OricatoApiBaseURL in the extension's Info.plist. Flutter apps use the same extension class.
In Oricato
Oricato always sends mutable-content: 1, so the extension runs for every Oricato notification. It needs no App Group and no shared storage: it reads everything it needs from the notification itself.
- It starts the delivery receipt first, signed with a key only that notification carries, and only on devices in the receipt sample.
- At the same time it downloads the image (HTTPS only, up to 10 MB, within a 15-second budget) and attaches it. If iOS ends the time early, the text notification is shown.
- Notifications that aren't Oricato's pass through unchanged. That's how one extension can serve the OneSignal SDK and the Oricato SDK during a migration.
- The one feature that needs an App Group is "increase badge", which needs a shared counter. "Set badge" works without one.
Stridewell ahora
Nuevo reto semanal
Completa 3 entrenamientos esta semana.
An expanded Lingora notification in Spanish: Nuevo reto semanal, Completa 3 entrenamientos esta semana.
Related terms
- Rich notificationnotifications with images and actions.
- APNsthe Apple service that delivers the notification the extension edits.
- Migrate from OneSignalrunning both SDKs during the switch.
Sources Apple Developer Documentation, "Modifying content in newly delivered notifications" (read Oct 16, 2026).