Implement In-App Messaging on Android

The SDK offers features that extend in-app messaging support for Android. Register event listeners, track message lifecycle, control message display, customize fonts, and set status bar colors to create a tailored experience for your app users.

Button Actions 

Implement required methods for button actions to handle Web URL and App URL actions in in-app messages. Configure the SDK with a UrlHandler to control what happens when users tap buttons on in-app messages.

Event Listener 

Register an event listener to control aspects of message display and get information about the in-app message display lifecycle. After the SDK initializes, register your event listener with InAppMessageManager to receive callbacks for message events.

Track View States 

Track message view states by implementing callback methods that notify your app when an in-app message is shown or closed. Use these methods to manage the activity stack for your app and respond to views appearing or disappearing.

Control Message Display 

Prevent or delay message display by returning false from the shouldShowMessage method. Control when in-app messages appear based on the state of your app, such as during loading processes or sign-in flows. Capture message data to display messages later when your app is ready.

Customize Fonts 

Customize the font for in-app messages to match the branding of your app. Override the default system font for titles, body text, and button labels by passing a valid TypeFace to the SDK.

Status Bar Color 

Set a custom status bar color for in-app messages. The SDK doesn’t inherit the status bar color for your app automatically. Define a custom color that the SDK applies on Android Lollipop and newer versions.