In order to use in-app messages in Android, we need a reference to the current activity. You can reference by passing it in with the Config.collectLifecycleData(Activity activity); method. This method previously existed with no parameters, but a new overloaded version allows users to pass in the current activity.
Step 4.
In-App Messaging