SDK Installation
From MoEngage-iOS-SDK version 8.2.0, MoEngageRealTimeTrigger module is separated from the SDK to a separate module as MoEngageRealTimeTrigger and hence has to be added separately.Install using CocoaPod
Integrate the RealTimeTrigger framework by adding the dependency in the podfile as shown below.pod install to install the framework
Install using Swift Package Manager
MoEngageRealTimeTrigger is supported through SPM from SDK version 1.2.0. To integrate, use the following github url link and set the branch as master or version as 1.2.0 and above https://github.com/moengage/MoEngage-iOS-RealTimeTrigger.gitManual Syncing
MoEngage SDK syncs all the real-time trigger campaigns whenever the app is launched OR comes to the foreground. But in case its needed to manually sync the device triggers for any of the background tasks, usesyncRealTimeTriggersWithCompletionBlock: as shown below:
Additional Callbacks for version below iOS 10
For iOS versions below iOS 10 calldidReceieveNotificationinApplication: withInfo:openDeeplinkUrlAutomatically: method of MoEngage SDK as shown below.