Skip to main content
Version: Kotlin Multiplatform SDK

Message conditions

Message conditions control when a message is displayed based on the current user context or past behavior.

Conditions are configured in the Screeb admin interface and evaluated from the data sent by your app.

Supported signalsโ€‹

Screenโ€‹

Track the current screen from shared Kotlin code:

Screeb.trackScreen("Checkout")

Event count and sequenceโ€‹

Track custom events:

Screeb.trackEvent("Product added to cart")

Screeb can then display messages after a user triggers an event a certain number of times, or after a specific event sequence.

Session duration and delayโ€‹

Screeb can display messages after the user has spent enough time on the app or on the current screen.

Debugging conditionsโ€‹

Use targeting debug information when a message is not displayed as expected:

val targetingInfo = Screeb.debugTargeting()

See Troubleshooting for more checks.