MoEngageSDKRichNotification
@objc
public class MoEngageSDKRichNotification : NSObject
Handles RichNotification
-
Method to handle rich Notification by downloading the resources and tracking impression.
Declaration
Swift
@objc public static func handle(richNotificationRequest request: UNNotificationRequest, withContentHandler contentHandler: @escaping contentHandler)Parameters
requestUNNotificationRequest instance that contains remote notification content
contentHandlercompletion block with updated notification content
-
Method to add Custom Push Template to the Notification Content Extension ViewController
Declaration
Swift
@objc public static func addPushTemplate(toController controller: UIViewController, withNotification notification: UNNotification)Parameters
controllerUIViewController instance to which the template needs to be added
notificationRemote notification
-
Set the App Group ID for sharing information between app and extension target.
Declaration
Swift
@objc public static func setAppGroupID(_ appGroupID: String)Parameters
appGroupIDPass the same value that is set for
MoEngageSDKConfig.appGroupIDinstance.