CORE JSC

International Technology Partnership

Mobile Development

Fixing React Native iOS Push Notifications That Show Text but Not the Rich Media Image

A push notification arrives correctly, with the right title and body text displayed exactly as sent — but the image that's supposed to appear below it never shows, leaving a plain text notification where a rich media one was intended. This isn't a setting on the main app at all; attaching an image to an iOS notification requires a separate Notification Service Extension target, and it fails silently almost every way it can fail.

Core JSC Team·November 27, 2026
React NativeiOSPush NotificationsRich MediaMobile Development

The Problem

A push notification sent to an iOS device displays correctly as far as its text goes — the title and body appear exactly as the backend sent them. The image that was supposed to accompany the notification, intended to turn it into a rich media notification with a visible thumbnail, never appears; the notification simply looks like a plain text one, with nothing in the client-side React Native code or the backend's send logs indicating anything failed.

Why It Happens

A rich media image on an iOS notification requires a separate Notification Service Extension target, which has to exist and be correctly configured before any image can ever display

Unlike the notification's text, which the system displays directly from the push payload, an image attachment requires a dedicated app extension — a UNNotificationServiceExtension — that intercepts the notification before it's shown, downloads the media, and attaches it. Without this extension target existing in the Xcode project at all, there is no code path capable of ever showing an image, regardless of anything done on the React Native or backend side — this is purely a native iOS project configuration, invisible from the JavaScript layer entirely.

The push payload has to explicitly set mutable-content, or iOS never even invokes the extension in the first place

iOS only calls the Notification Service Extension's code if the push payload includes "mutable-content": 1 alongside the usual aps fields. If the backend sending the push omits this flag — easy to miss since the notification still displays its text perfectly fine without it — the extension is never invoked at all, and the image download logic inside it, however correctly written, simply never runs.

The extension operates under a strict time and memory budget, separate from the main app, and a failure inside it falls back silently to the plain notification with no visible error anywhere

A Notification Service Extension has roughly 30 seconds to complete its work and a tight memory ceiling, both enforced independently of anything the main app is doing. A slow image URL, a large image that exceeds the memory budget, or any other failure inside the extension's download logic causes iOS to simply fall back to displaying the notification without the attachment — there's no error surfaced to the main app, the backend, or typically even to standard crash reporting, because the extension is its own separate, short-lived process.

The Fix

1. Confirm the Notification Service Extension target actually exists and is included in the app's build

Xcode -> Project Navigator -> check for a target of type
"Notification Service Extension" alongside the main app target
-> confirm it's included in the app's embedded extensions during build

This is the first thing to verify, since without this target present and correctly embedded, nothing else in this list can matter — a project missing this extension entirely needs it added via Xcode's "New Target" flow before any image attachment is possible at all.

2. Ensure the backend's push payload includes mutable-content and the media URL the extension expects

{
  "aps": {
    "alert": { "title": "New message", "body": "..." },
    "mutable-content": 1
  },
  "media-url": "https://example.com/image.jpg"
}

mutable-content: 1 is what actually triggers iOS to invoke the extension at all — its absence is a common and easy-to-miss cause, precisely because the notification continues to display its text normally without it, giving no indication that this specific flag is the reason the image never shows.

3. Implement the extension to download the attachment within the time and size budget, and always call the completion handler

override func didReceive(_ request: UNNotificationRequest,
                          withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
    guard let mediaURLString = request.content.userInfo["media-url"] as? String,
          let mediaURL = URL(string: mediaURLString) else {
        contentHandler(request.content)
        return
    }
    URLSession.shared.downloadTask(with: mediaURL) { localURL, _, _ in
        guard let localURL = localURL,
              let attachment = try? UNNotificationAttachment(identifier: "media", url: localURL) else {
            contentHandler(request.content)
            return
        }
        let mutableContent = request.content.mutableCopy() as! UNMutableNotificationContent
        mutableContent.attachments = [attachment]
        contentHandler(mutableContent)
    }.resume()
}

Calling contentHandler with the original, unmodified content whenever the download or attachment creation fails — rather than letting the extension hang until iOS's own timeout kills it — ensures a failed image at least falls back to a correctly-displayed plain notification instead of risking the notification not appearing at all if the extension's time budget is exceeded.

4. Test via a real distribution build (TestFlight or App Store), not just an Xcode debug run, and check the extension's own logs specifically

Console.app (connected to the device) -> filter by the extension's
own process name, not the main app's — the extension logs separately
and won't appear in the React Native / Metro console output at all.

Notification Service Extensions can behave differently between a debug build run from Xcode and a genuine distribution build, and because the extension runs as its own process, its logs have to be found specifically in device console output filtered to the extension's process name — nothing the extension does or fails to do will ever show up in the main app's own React Native logging.

Why This Works

None of these failures are a bug in how the notification's text is handled — the image attachment is an entirely separate code path, living in a separate app extension target, gated behind a specific payload flag, and running under its own time and memory constraints with no error surfaced back to the main app when it fails. Confirming the extension target exists, setting the payload flag that actually invokes it, implementing it to fail gracefully within its budget, and checking its own separate logs during testing together cover each of the specific points where this feature silently breaks.

Conclusion

A push notification showing text but no rich media image is a missing or misconfigured Notification Service Extension, not a problem with the notification's text delivery at all. Confirming the extension target exists and is embedded, setting mutable-content: 1 on the payload, implementing the extension to fail gracefully within its time and size budget, and checking its own device-side logs during testing turns a silently-degraded notification into one that reliably shows the rich media it was meant to.