In-App Messaging (iOS)

In addition to the SDK integration steps, follow the below integration steps to enable In-App Message support in the Blueshift IOS SDK.

Integration

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.

inapp5.png

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.

inapp6.png

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.

inapp7.png

Make sure you are unregistering the ViewController/Page after using them with the help of the following method.

inapp8.png

 

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.

inapp9.png



Was this article helpful?
0 out of 0 found this helpful