Skip to main content

In-App Messaging — iOS SDK

In-app messaging (mobile hub) →

let config = OpenCDPConfig(
cdpApiKey: "YOUR_CDP_API_KEY",
enableInAppMessages: true,
enableInAppAutoPresent: true, // modal + banner
autoTrackScreens: true
)
OpenCDP.shared.initialize(config: config)
try OpenCDP.shared.identify(identifier: "user_123")

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