Enable in-app messaging
Pass anInAppConfig when you initialize the SDK:
Identify users
You must identify a user before personalized in-app messages can be delivered:How messages appear
Once in-app is enabled and the user is identified:- Create and launch an in-app campaign in the Zixflow dashboard.
- When campaign conditions match, the SDK fetches and displays the message in your app.
- No extra UI code is required for standard modal/banner messages—the SDK renders them.
Zixflow.instance.screen(title: ...) if your campaigns target specific screens.
Listen for in-app events
Subscribe to events when messages are shown, dismissed, or when a user takes an action:| Event type | When it fires |
|---|---|
messageShown | Message is displayed |
messageDismissed | Message is closed |
messageActionTaken | User taps a message action |
errorWithMessage | Message fails to display |
Dismiss a message
Dismiss the currently visible in-app message from your app code:Inline in-app messages
UseInlineInAppMessageView to render a message inline in your layout. The elementId must match the placement ID configured in your campaign.
Notification inbox
Access persistent inbox messages withZixflow.inAppMessaging.inbox:
inbox.getMessages(topic: 'promotions') or inbox.messages(topic: 'promotions').
For the full method list, see the API Reference.