Rich notification media attachments
Attaches images, audio or video to an iOS alert: 10 MB, 5 MB and 50 MB limits.
In one line
Can attach pictures, sound or video to an iPhone alert, within size limits
Attaches images, audio or video to an iOS alert: 10 MB, 5 MB and 50 MB limits.
Fetched media can reveal when and where an alert was shown through the request. Android notifications show images via BigPictureStyle with no published size cap.
What it can and can't do
What the user does: You get a push with a photo, clip or audio attached
It can
- Show an image up to 10 MB, like JPEG, GIF or PNG
- Attach audio up to 5 MB or a movie up to 50 MB
- Show large images on Android, limited only by memory
It cannot
- Attach files bigger than 10 MB, 5 MB or 50 MB for image, audio or movie
- Use file types outside the allowed list
- Show media if notifications are off for the app
How it differs between platforms: iPhone sets size limits by type. Android has no published size limit but depends on memory.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 4.1 (API 16) | iOS 10.0 |
| Permission or entitlement | Not listed | Not listed |
| Protection level | none | none |
| How access is granted | install | none |
| What the user sees | None | None |
| How long it lasts | Downloaded by the app; memory bound | Attachment files are moved into the notification store; cleaned after dismissal |
| How to take it back | n/a | n/a |
| Store policy | None listed | None listed |
| API | NotificationCompat.BigPictureStyle | UNNotificationAttachment |
| Notes | No published size limit; large bitmaps bound by memory | Audio 5 MB (AIFF, WAV, MP3, M4A), image 10 MB (JPEG, GIF, PNG), movie 50 MB (MPEG, MPEG-2, MP4, AVI) |
Data you get
What comes back: Attachment limits
Shape: object
How often: Static
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
audio | integer | MB | 5 | Not listed |
image | integer | MB | 10 | Not listed |
movie | integer | MB | 50 | Not listed |
Technical limits
- Fetching the media requires network work inside the extension window
The story
What it is
Alerts that carry a picture, sound or short video.
For you
You see a photo in the alert, like your delivery driver or a news picture. You may not know the picture was loaded from a web address that tells the sender it was shown.
For makers
Makers get richer, more clickable alerts. The picture link can also carry a hidden ID that shows when and from where the alert was opened.
Where you see it
| Type | Example | Apps |
|---|---|---|
| delivery | A food app shows a photo of your order with the alert. | DoorDash |
| news | A news app shows a big photo with the headline. | NYT, BBC |
| social | A social app shows the photo someone sent you. | |
| shopping | A store shows a product picture in a price drop alert. | Amazon |
| music | A music app shows album art and a short audio preview. | Spotify |
| ads | A marketing tool hides a tracking pixel in the image link to know the alert was seen. | None named |
| live | A sports app shows a short highlight video clip with the score alert. | ESPN |
Risks
- Tracking pixels in image links
- Uses data
Android and iPhone in short
- Android: Android shows big pictures with no published size cap.
- iPhone: iOS limits attachments to 10 MB for images, 5 MB for audio and 50 MB for video.
What the platform says
- Apple: Notification attachments. Apple lets alerts include images, audio or video that appear when the alert is expanded.
- Google: Expandable notifications. Android lets alerts expand to show a large picture or longer text.
Good uses and abuse
Legitimate uses
- Order photos
- Previews
Known abuse
- Tracking pixels in attachment URLs
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2016-09, iPhone iOS 10: Media attachments via UNNotificationAttachment
Related capabilities
Related
- Notification service extension and mutable content. Can edit an iPhone push for about 30 seconds before you see it
Sources
How well checked: Checked against real behavior.