Skip to main content

In-App Messaging — Android SDK

In-app messaging (mobile hub) →

val config = OpenCDPConfig(
cdpApiKey = "YOUR_CDP_API_KEY",
enableInAppMessages = true,
enableInAppAutoPresent = true, // modal + banner
autoTrackScreens = true,
)
OpenCDP.initialize(this, config)
OpenCDP.identify(identifier = "user_123")

Campaign Include screens must match Activity titles / trackScreenView names. Set enableInAppAutoPresent = false and use addInAppListener for fully custom UI. inline / inbox_card always need a host layout slot.