--- layout: page title: "Notification attachments" description: "Adding attachments to iOS push notifications" date: 2016-10-25 15:00:00 -0700 sidebar: true comments: false sharing: true footer: true redirect_from: /ecosystem/ios/notifications/attachments/ --- iOS 10 adds _attachments_ to notifications. An attachment is an image, video, or audio file which is downloaded to the device when a notification is received and shown alongside the notification. A thumbnail is shown when the notification is not expanded. The full size attachment is shown when the notification is expanded.
To expand a notification on 3D Touch devices simply force touch any notification. On non-3D Touch devices swipe and tap the "View" button.
```yaml - alias: Notify iOS app trigger: ... action: service: notify.ios_robbies_iphone_7_plus data: message: "Something happened at home!"" data: attachment: url: "https://github.com/home-assistant/home-assistant-assets/blob/master/logo-round-192x192.png?raw=true" content-type: png hide-thumbnail: false ``` Notes: * The thumbnail of the notification will be the media at the `url`. * The notification content is the media at the `url`. * Attachment can be used with custom push notification categories. ## Example
An unexpanded push notification with an attachment.
The same notification but expanded to show the full size attachment