Carousel, Slider and Thumbnail Push
Last updated
Was this helpful?
Last updated
Was this helpful?
Warning:
You should build your application with Xcode 8 or higher to use iOS10 media push on your application.
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
.
Switching Back to Debugging
If you accidentally "Activate", you can return to debugging your app using Xcode, which is located alongside the play button.
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.
The new NotificationViewController class should extend NetmeraNotificationContentExtension
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 set YES
.
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: