Learn how to add images, gifs, and multimedia to mobile push notifications using OneSignal’s Dashboard and API, including recommended formats, device-specific behavior, and rich media customization options.
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:
Add images to web push notifications.
Add images to in-app messages.
Add images to emails.
Add images to make MMS messages.
You can add images to push notifications via the OneSignal Dashboard or API. There are two main types:
To add images:
big_picture
(Android) and ios_attachments
(iOS)Add images in the OneSignal Dashboard via the 'Image' field.
Use landscape-oriented images with a 2:1 aspect ratio.
iOS | Android | |
---|---|---|
Filetypes | jpg , jpeg , png , gif | jpg , jpeg , png , gif * |
Resolution | 1: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 Parameter | ios_attachments | big_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.
OneSignal supports deeper visual and interactive customization using native platform features.
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 uses UNNotificationContentExtension
to enable rich media and interactivity in notifications.
Supported features:
See our iOS Carousel Guide for setup instructions.
Rich media can be added via URLs to externally hosted content. This works with UNNotificationContentExtension
on iOS.
?file=video.mp4
) so the SDK can detect the media type.Attachment | File Type | Max Size | Requirements |
---|---|---|---|
Audio | aif , aiff , wav , mp3 | 5MB | None |
Video | mp4 , mpeg , mpeg2 , mpeg4 , avi | 50MB | UNNotificationContentExtension |
Image | jpg , jpeg , png , gif | 10MB | OneSignalNotificationServiceExtension |
The OneSignalNotificationServiceExtension is included in the OneSignal SDK and required for image support, delivery tracking, and badge updates.
Make sure your media displays correctly across devices:
If your images aren’t appearing as expected, consult the Notification Images Not Showing guide for common causes and fixes.
Learn how to add images, gifs, and multimedia to mobile push notifications using OneSignal’s Dashboard and API, including recommended formats, device-specific behavior, and rich media customization options.
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:
Add images to web push notifications.
Add images to in-app messages.
Add images to emails.
Add images to make MMS messages.
You can add images to push notifications via the OneSignal Dashboard or API. There are two main types:
To add images:
big_picture
(Android) and ios_attachments
(iOS)Add images in the OneSignal Dashboard via the 'Image' field.
Use landscape-oriented images with a 2:1 aspect ratio.
iOS | Android | |
---|---|---|
Filetypes | jpg , jpeg , png , gif | jpg , jpeg , png , gif * |
Resolution | 1: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 Parameter | ios_attachments | big_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.
OneSignal supports deeper visual and interactive customization using native platform features.
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 uses UNNotificationContentExtension
to enable rich media and interactivity in notifications.
Supported features:
See our iOS Carousel Guide for setup instructions.
Rich media can be added via URLs to externally hosted content. This works with UNNotificationContentExtension
on iOS.
?file=video.mp4
) so the SDK can detect the media type.Attachment | File Type | Max Size | Requirements |
---|---|---|---|
Audio | aif , aiff , wav , mp3 | 5MB | None |
Video | mp4 , mpeg , mpeg2 , mpeg4 , avi | 50MB | UNNotificationContentExtension |
Image | jpg , jpeg , png , gif | 10MB | OneSignalNotificationServiceExtension |
The OneSignalNotificationServiceExtension is included in the OneSignal SDK and required for image support, delivery tracking, and badge updates.
Make sure your media displays correctly across devices:
If your images aren’t appearing as expected, consult the Notification Images Not Showing guide for common causes and fixes.