In-App Messaging (Android)

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.

Integration

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.

Screen_Shot_2019-10-16_at_5.03.59_PM.png

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.

inapp2.png

Make sure you are unregistering the Activity after using them with the help of the following method.

inapp3.png

Note: If all your pages needs to support in-app messages, you can do this globally with the help of ActivityLifecycleCallbacks.

inapp4.png

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.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request