Carousel, Slider and Thumbnail Push
Warning:
You should build your application with Xcode 8 or higher to use iOS10 media push on your application.
Step 1: Create New Target
Ensure Xcode 8 or higher is installed.
In Xcode: Navigate to File > New > Target.

Select Notification Content Extension.

A new class named NotificationViewController will be created. Extend it from
NetmeraNotificationContentExtension
.

Step 2: Add your Project to Pod File
Remove the Objective-C Bridging Header file.
Add
NetmeraNotificationContentExtension
in the NotificationContent.swift file.In your Podfile, add:
Run
pod update
to apply the changes.
Warning: Run pod update
after editing the Podfile.
Step 3: Add Code to Notification Content Extension Class
The new NotificationViewController class should extend
NetmeraNotificationContentExtension
Step 4: Info.plist Configuration
Make sure the info.plist file under the content extension looks like this.

Delete Label in
MainInterface
If you want to add slide action to Carousel property,
UserInteractionEnabled
must be setYES
.

Enable App Groups for both your application and the NotificationContent extension in the Capabilities settings of your project. Then add "group.com.yourcompany.carousel" to your app groups.
Specify the app group name in the app delegate method where you set the
Netmera.start()
method. Use the following codes as examples:
Last updated
Was this helpful?