Rich push notification with images are not showing in iOS via native and Cordova

I am trying to follow the documentation on setting up a Notification Service Extension in iOS, but even after following everything, images attached to a push notification or not being shown at least as a thumbnail. Just text shows up.

There is also another issue related to the documentation for implementing Notification Service Extension in iOS -- the CocoaPods library stated in the documentation is "AirshipExtensions/NotificationService" but when I do a pod install, it is able to install the library but gives the message "AirshipExtensions has been deprecated in favor of AirshipServiceExtension". I tried with "AirshipServiceExtension", replacing the "@import" but images are still not being shown as thumbnails in the push notification. I am using version 16.9.3 of the main Airship libraries via CocoaPods.

Can someone please look into this? I am testing this on an iOS 15.x device.

Didn't find what you were looking for?

New post



  • Hello,

    Thank you for contacting Airship Support.

    It looks like you are experiencing issues implementing Notification Service Extension in iOS via the CocoaPods library. The error you are receiving says that "AirshipExtensions" has been deprecated, but trying the updated library, "AirshipServiceExtension", is yielding errors for you. If that is not the correct understanding, please feel free to point out where I'm mistaken.

    If that is the issue, however, then it can be explained by this update changelog, found on our GitHub repo:

    Version 16.2.0 January 24, 2022
    * Split pod AirshipExtensions into AirshipServiceExtension and AirshipContentExtension

    Since you are experiencing issues with images in a push notification, i.e. content, I would recommend you utilize both libraries, AirshipServiceExtension and AirshipContentExtension. Please let me know if that makes a difference.


    Moin A.
    Airship // Technical Support Engineer

    Comment actions Permalink
  • Hello. It still doesn't show but the payload contains the GIF I added in the message in the Messages Console. This is what I have in my NotificationService.h as per documentation:

    @import AirshipServiceExtension;

    @interface NotificationService : UANotificationServiceExtension


    And this is what I have in my NotificationService.m as per documentation:

    @import Foundation;

    #import "NotificationService.h"

    @implementation NotificationService




    This is what my PodFile looks like

    platform :ios, '11.0'


    target 'HelloCordova' do
    project 'HelloCordova.xcodeproj'
    pod 'Airship/Core'
    pod 'Airship/MessageCenter'
    pod 'Airship/Automation'
    pod 'Airship/ExtendedActions'
    pod 'Airship/PreferenceCenter'

    target 'MyNotificationService' do
      pod 'AirshipServiceExtension'
      pod 'AirshipContentExtension'

    I do have a Notification Service Extension with the name MyNotificationService but I didn't create a Notification Content Extension. Is that needed to show the thumbnail image and expanded image in the push notification? If so, I didn't get that understanding from the documentation.

    Comment actions Permalink
  • Sorry my mistake! It's working after this change. Thank you!

    Comment actions Permalink
  • Hi,

    I have added AirshipNotificationServiceExtension and imported 

    #import <AirshipNotificationServiceExtension/AirshipNotificationServiceExtension.h>

    but still the interactive/media content is not visible in notification. 

    can you guide on this?

    Comment actions Permalink

Please sign in to leave a comment.