Attaching a video to a push notification can have a powerful way to engage an audience. This article will provide some best practices to maximize delivery success and user experience as well as tips to avoid common issues that arise.
Before sending your video, ask yourself the following questions:
Am I sending a video without audio?
If your video does not contain audio, considering sending a .gif instead. GIF files can reduce the size of the payload and decrease the potential for delayed deliveries. Since different device types require different video specifications, sending a gif can increase the likelihood that your entire audience will receive the same notification.
Does my video meet Urban Airship requirements?
Listed on our website are a list of iOS 10 Media Attachment best practices and requirements. Here is a link to that documentation: Urban Airship iOS 10 Media Attachments.
|Note: If you are sending notifications using our API, you will only be able to attach links to video URL rather than uploading them to Urban Airship servers.|
|There is a lot to know about creating/modifying video, especially when sending via push notifications. Using a video transcoder program can save a substantial amount of time and frustration. We recommend using open sourced software such as Handbrake (free) to streamline the process.|
Have you tested your video and it's still not working?
Here are a few things to double check and some helpful links:
- Are you running the latest version of the Urban Airship SDK?
- Is the device updated to the latest version?
- Does your video meet Apple specifications? This can be found in the Video Technologies section in the following document: iOS Media Layer
|Note: Pay close attention to the information listed under Table 2-3|
- Does the media attachment meet requirements for Apple API's UNNotificationAttachment class