This guide explains how to enhance mobile push notifications using images and rich media, including platform support, technical limitations, and customization options in OneSignal.

Image guides for other channels:


Mobile app images

You can add images to push notifications via the OneSignal Dashboard or API. There are two main types:

Notification icons

  • iOS: Automatically uses the app icon.
  • Android: Allows custom large and small icons.
  • See Notification icons for setup instructions.

Big Picture image (large format)

  • Android: Shows expanded by default on most devices.
  • iOS: Requires user to swipe down or long press.

To add images:

  • In Dashboard: Messages > New Push > “Upload” to image field
  • Or use API parameters: big_picture (Android) and ios_attachments (iOS)

Add images in the OneSignal Dashboard via the 'Image' field.


Image specifications

Use landscape-oriented images with a 2:1 aspect ratio.

iOSAndroid
Filetypesjpg, jpeg, png, gifjpg, jpeg, png, gif*
Resolution1:1 aspect ratio or 2:1 aspect ratio (e.g., 1038x1038px or 1024×512px)
Max Width: 2000px
Min Width: 300px
2:1 aspect ratio (e.g., 1024×512px)
Max Width: 2000px
Min Width: 300px
API Parameterios_attachmentsbig_picture

OneSignal enforces a 5MB upload limit and does not support audio or video uploads. Hosted images expire after 33 days. For long-term use, upload to your own static URL or use Templates.


Rich notification customization

OneSignal supports deeper visual and interactive customization using native platform features.

Android custom notification layout

Android 12+ enforces system templates for custom notifications. However, you can still customize your layout using Android’s standard notification styles. See behavior changes for details.

To customize your layout:

iOS content extensions

iOS uses UNNotificationContentExtension to enable rich media and interactivity in notifications.

Supported features:

  • Image carousels
  • Embedded video playback
  • Custom views like calendars or chat previews

See our iOS Carousel Guide for setup instructions.


Supported media attachments

Rich media can be added via URLs to externally hosted content. This works with UNNotificationContentExtension on iOS.

  • Ensure your URLs are direct links to the file and end in the correct extension. If not, append a query (e.g., ?file=video.mp4) so the SDK can detect the media type.
  • OneSignal has a 5MB limit on uploaded images. Video and audio must be hosted externally. Link directly to the media file, not a webpage.
AttachmentFile TypeMax SizeRequirements
Audioaif, aiff, wav, mp35MBNone
Videomp4, mpeg, mpeg2, mpeg4, avi50MBUNNotificationContentExtension
Imagejpg, jpeg, png, gif10MBOneSignalNotificationServiceExtension

The OneSignalNotificationServiceExtension is included in the OneSignal SDK and required for image support, delivery tracking, and badge updates.


Testing tips

Make sure your media displays correctly across devices:

  • Always test on real devices (not emulators).
  • iOS requires long press or swipe-down to reveal rich media.
  • Android rendering varies by device, OS version, and presence of action buttons.
  • Use the “Send Test” button in OneSignal before launching a campaign.

Example use cases

  • Show a product photo in an abandoned cart reminder
  • Promote a new movie trailer with a video preview (iOS only)
  • Send an animated banner for a flash sale

Troubleshooting

If your images aren’t appearing as expected, consult the Notification Images Not Showing guide for common causes and fixes.


This guide explains how to enhance mobile push notifications using images and rich media, including platform support, technical limitations, and customization options in OneSignal.

Image guides for other channels:


Mobile app images

You can add images to push notifications via the OneSignal Dashboard or API. There are two main types:

Notification icons

  • iOS: Automatically uses the app icon.
  • Android: Allows custom large and small icons.
  • See Notification icons for setup instructions.

Big Picture image (large format)

  • Android: Shows expanded by default on most devices.
  • iOS: Requires user to swipe down or long press.

To add images:

  • In Dashboard: Messages > New Push > “Upload” to image field
  • Or use API parameters: big_picture (Android) and ios_attachments (iOS)

Add images in the OneSignal Dashboard via the 'Image' field.


Image specifications

Use landscape-oriented images with a 2:1 aspect ratio.

iOSAndroid
Filetypesjpg, jpeg, png, gifjpg, jpeg, png, gif*
Resolution1:1 aspect ratio or 2:1 aspect ratio (e.g., 1038x1038px or 1024×512px)
Max Width: 2000px
Min Width: 300px
2:1 aspect ratio (e.g., 1024×512px)
Max Width: 2000px
Min Width: 300px
API Parameterios_attachmentsbig_picture

OneSignal enforces a 5MB upload limit and does not support audio or video uploads. Hosted images expire after 33 days. For long-term use, upload to your own static URL or use Templates.


Rich notification customization

OneSignal supports deeper visual and interactive customization using native platform features.

Android custom notification layout

Android 12+ enforces system templates for custom notifications. However, you can still customize your layout using Android’s standard notification styles. See behavior changes for details.

To customize your layout:

iOS content extensions

iOS uses UNNotificationContentExtension to enable rich media and interactivity in notifications.

Supported features:

  • Image carousels
  • Embedded video playback
  • Custom views like calendars or chat previews

See our iOS Carousel Guide for setup instructions.


Supported media attachments

Rich media can be added via URLs to externally hosted content. This works with UNNotificationContentExtension on iOS.

  • Ensure your URLs are direct links to the file and end in the correct extension. If not, append a query (e.g., ?file=video.mp4) so the SDK can detect the media type.
  • OneSignal has a 5MB limit on uploaded images. Video and audio must be hosted externally. Link directly to the media file, not a webpage.
AttachmentFile TypeMax SizeRequirements
Audioaif, aiff, wav, mp35MBNone
Videomp4, mpeg, mpeg2, mpeg4, avi50MBUNNotificationContentExtension
Imagejpg, jpeg, png, gif10MBOneSignalNotificationServiceExtension

The OneSignalNotificationServiceExtension is included in the OneSignal SDK and required for image support, delivery tracking, and badge updates.


Testing tips

Make sure your media displays correctly across devices:

  • Always test on real devices (not emulators).
  • iOS requires long press or swipe-down to reveal rich media.
  • Android rendering varies by device, OS version, and presence of action buttons.
  • Use the “Send Test” button in OneSignal before launching a campaign.

Example use cases

  • Show a product photo in an abandoned cart reminder
  • Promote a new movie trailer with a video preview (iOS only)
  • Send an animated banner for a flash sale

Troubleshooting

If your images aren’t appearing as expected, consult the Notification Images Not Showing guide for common causes and fixes.