Our documentation is changing, please click here to enjoy it!

Skip to end of metadata
Go to start of metadata

iOS 10 introduced support for rich notifications, which added the ability to send push notifications with media attachments such as images, animated gifs, sounds and videos.

It is a very interesting way to enhance the User Experience and the performance of your Push Notifications. 

Here it is an example of push notification with a media attachment :

Rich notifications are available on iPhone 5s or later, iPad Pro, iPad Air or later, and iPad mini 2 or later.

To enable this functionality, you will need to create a Notification Service Extension.


Deployment target

By default, XCode set the most recent iOS version available as deployment target. If you run your application on a device that has an older iOS version, push notifications with media attachment won't be able to work. We recommend to set 10.0 as deployment target.


    1. In your Podfile, add the pod Accengage-iOS-SDK-Extension to your newly created target

    2. Then, update your Cocoapods project.


    • Once your notification service is created, download and unzip the latest version of the iOS SDK Extension.
    • Drag AccengageExtension.framework into the top level of your Xcode project. When prompted, use the checkboxes to add the framework to the notification service target. Make sure you check the Copy items if needed box. 

    • In your application target you need to add a Copy Files build phase to your target. From the Build Phases panel of your target's configuration: 
      1. Press the + button from the top left region
      2. Select New Copy Files Phase. A new entry will appear in the Build Phases list.
      3. Change the destination selector to Frameworks
      4. Find the  AccengageExtension.framework  and drag it into this new section.
    • Add a new Run Script Phase and paste the content of the this script in the newly added section. This script works around an App Store submission bug triggered by universal frameworks. 

      The order of the build phases is important. The Run Script phase must be added after (or placed below) the Copy Files phase.

    • Verify  Enable Modules  and  Link Frameworks Automatically  are enabled in the target Build Settings.



    Finally, inherit from ACCNotificationServiceExtensionin NotificationService and replace all the code generated by XCode by the following one :



      • No labels