Skip to main content

Problem

There is a standard default method for showing the In-app campaigns, but you cannot dynamically control their visibility based on custom logic.

Explanation

The custom logic that failed to hide the in-app messages dynamically involves initializing a Boolean value to true or false.
#val isInAppEnable = true
if(isEnable) {
showInApp()
}
val isInAppEnable = false
if(isEnable) {
showInApp()
}

Solution

Perform one of the following steps:
  • Use event-based In-apps to show or hide in-app messages based on your custom events on specific screens.
  • Use contextual In-apps with specified screen names to toggle the visibility of in-app messages while working with multiple screens.