With the version of Netmera SDK 3.14.4, you don't need to add a bridging header file to use iOS 10 media push. You should only implement the following methods in your Notification Service Extension to receive rich media push.
You can reach for both Swift and Objective-C.
Step 1
Remove the Objective-C Bridging Header file from the project and add:
import NetmeraNotificationServiceExtension
in the NotificationService.swift file.
target 'your_service_extension_target_name' do
pod "Netmera/NotificationServiceExtension"
end
After adding the previous line to your Podfile, pod update
is used.
Step 2
Make sure you have Xcode 8 or a higher version installed. If not, upgrade your Xcode installation to use iOS10 media push on your application.
First you should create a new Notification Service Extension to your application. In order to do that, you should follow those steps:
- open Xcode and navigate to "File" -> "New" -> "Target"

- choose Notification Service Extension from the available options.

Step 3
A new class named "NotificationService" will be created, which should be extended from the "NetmeraNotificationServiceExtension" class. Your NotificationService class should look like the following,
class NotificationService : NetmeraNotificationServiceExtension {
override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (_ contentToDeliver: UNNotificationContent) -> Void) {
super.didReceive(request, withContentHandler: contentHandler)
}
override func serviceExtensionTimeWillExpire() {
super.serviceExtensionTimeWillExpire()
}
}
Link the "Netmera.framework" to the Notification Service Extension. To do this, add your Notification Service Extension as a target to your Podfile by including the following line:
pod "Netmera/NotificationServiceExtension"
Update your Podfile to install the necessary dependencies and perform the linking process.
And for more to send carousel, slider notification you can review here.