---
name: push-images
description: Use when adding a photo, promotional image, attachment thumbnail or sender avatar to a notification.dev push campaign, direct message or Journey push step. Covers message fields, image limits, iOS native setup and SDK release readiness.
---

# Push images and sender avatars

Read `notification-platform` for workspace work, then `push-campaigns`,
`transactional-push` or `journeys` for the action. Image fields use those existing
tools; there is no separate image-send tool.

## Choose the image type

| User wants                                          | Message field                    | Use                                                                              |
| --------------------------------------------------- | -------------------------------- | -------------------------------------------------------------------------------- |
| Campaign visual, seasonal offer or photo attachment | `imageUrl`                       | Standard notification; compact thumbnail and expanded image depend on device/SDK |
| Person's avatar beside an incoming chat message     | `communication.sender.avatarUrl` | Genuine person-to-person communication, with stable sender and conversation IDs  |

Use one mode per notification: `communication` and `imageUrl` are mutually
exclusive. An image does not replace the installed application's icon. Keep the
title and body useful when the image is unavailable.

## Get an image URL

Use an existing public, direct HTTPS URL, or ask the user to upload an image in
the dashboard notification editor and reuse the resulting image URL. MCP accepts
URLs; it currently has no binary upload tool. Local paths, base64/data URLs and
authenticated download links cannot be used as message image URLs.

- JPEG, PNG or GIF; at most 2 MiB and 2048 × 2048 px. Use JPEG/PNG for predictable
  static rendering; GIF animation is not guaranteed.
- Recommended: 1200 × 600 px for a wide campaign image; 512 × 512 px for a square
  person/offer thumbnail or sender avatar. Device cropping can differ.
- Use a URL without credentials or redirects, downloadable within five seconds.
  Uploaded assets have public URLs; choose content suitable for public hosting.
- The JSON message carries the URL, not the image bytes. All message metadata
  still counts toward the 3,000-byte content budget.

## Standard notification example

Use this object as `input.message` for `create_campaign_draft` or
`update_campaign_draft`, as `message` for `send_message`, or as the `message` of a
Journey node with `type: "push"`:

```json
{
  "title": "Your seasonal offer",
  "body": "Open the app to see your offer.",
  "imageUrl": "https://cdn.example.com/seasonal-offer.jpg",
  "deepLink": "myapp://offers/seasonal"
}
```

The backend automatically enables APNs `mutable-content` for images, even when
`ios.mutableContent` is omitted or false. iOS needs an embedded, signed Notification
Service Extension linked to `NotificationDevServiceExtension`; the main SDK alone
is insufficient. Read `get_sdk_integration_guide` with `{"platform":"ios"}` for
setup. Adding the extension requires a new native app build. Standard images do
not require the Communication Notifications capability or communication App Group.

## Sender-avatar example

Sender avatars require native SDK 0.4.1 or later: Android
`dev.notification:android-sdk:0.4.1`, Swift package `0.4.1`, Flutter
`notification_dev` 0.4.1 or Expo `@notification.dev/expo` 0.4.1. Do not use
Android 0.4.0; its artifacts fail duplicate-class checks. An installed app does
not gain this feature from a dashboard deployment. Device presentation requires
the compatible SDK, native configuration and a new app build.

```json
{
  "title": "New message",
  "body": "The new lesson is ready.",
  "deepLink": "myapp://chat/conversation-123",
  "communication": {
    "sender": {
      "id": "person-456",
      "name": "Anna",
      "avatarUrl": "https://cdn.example.com/anna.jpg"
    },
    "conversationId": "conversation-123"
  }
}
```

Sender ID, name and conversation ID are required, nonblank, up to 255 characters.
Reuse IDs for the same person/conversation; `avatarUrl` is optional. Use this mode
for genuine direct messages. Offers use `imageUrl`.

The iOS implementation needs Communication Notifications capability,
`NSUserActivityTypes` containing `INSendMessageIntent`, an embedded signed service
extension, and the same App Group entitlement plus
`NotificationDevCommunicationAppGroup` plist value in host and extension. Preserve
production APNs signing. The Expo plugin options are
`iosCommunicationNotifications: true` and `iosCommunicationAppGroup: "group.your.app.notifications"`;
they do not create/sign the extension. For hand-maintained native projects, apply
the settings manually rather than running `prebuild --clean`. Launch the rebuilt
app and complete identity sync before testing. See the
[setup guide](https://github.com/TheBoldApps/notification.dev-SDKs/blob/main/docs/communication-expo-setup.md).

On Android, full conversation presentation also needs a chat deep link supported
by the app. If the app-owned conversation shortcut cannot be registered, the SDK
uses messaging-style fallback. Compact Android thumbnails require native SDK 0.4.1
or later; older SDKs may show standard attachments only when expanded.

## Review and verify

Save a draft for dashboard review; sending requires the user's instruction as
described in the action skill. The compact/expanded editor previews are
illustrative: OS version, device, settings, cropping and SDK affect the real result.
Image failure must leave readable text.

For integration acceptance, use fresh deliveries on physical iOS and Android in
foreground, background and terminated states. Check image fallback, then correlate
the same delivery ID through its individual accepted `opened` operation (inspect
item results even inside HTTP 200), persisted interaction and the correct
campaign/Journey tap counters. Provider acceptance, an attached image or successful
navigation alone does not prove a recorded tap.
