In addition to the SDK integration steps, follow the below integration steps to enable In-App Message support in the Blueshift IOS SDK.
1.Enable In-App Messaging
This method is used to enable/disable in-app-notification feature. By default, the feature is disabled. When enabling this feature also enable the app group section.
For custom in-app notification callbacks, you can pass your custom class to accept in-app notification callbacks. Please make sure that this class inherits from BlueShiftInAppNotificationDelegate.
2. Register ViewController
To show in-app messages, you need to register all the required pages (ViewController) using the following methods. Only these pages will be able to display the in-app messages.
Make sure you are unregistering the ViewController/Page after using them with the help of the following method.
Time Interval Configuration
By default, the time interval between two consecutive in-app messages i.e. time from the moment a user dismisses the current in-app message until the time the next in-app message is displayed is 1 minute. You can change this time interval by calling the following method while initializing the SDK.