In addition to the SDK integration steps, you will need to follow the below mentioned steps to enable In-App Message support in the Blueshift Android SDK.
1. Enable In-App & JS
Enable the in-app feature while initializing the Blueshift SDK. You should also enable the use of JS inside the in-app WebView to get the HTML based templates to work without issues.
2. Register Pages/Activities
To show in-app messages, you need to register all the required pages (Activities) using the following methods. Only these pages will be able to display in-app messages.
Make sure you are unregistering the Activity after using them with the help of the following method.
Note: If all your pages needs to support in-app messages, you can do this globally with the help of ActivityLifecycleCallbacks.
Time Interval Configuration
By default, the time interval between 2 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 via an additional configuration.