Why Does Dynamically Enabling or Disabling In-Apps Fail?

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.

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

How can we improve this article?