Implement In-App Messaging on iOS

The SDK offers features that extend in-app messaging support for iOS. Set event delegates, track message lifecycle, control message display, customize fonts, and configure push permissions to create a tailored experience for your app users.

Event Delegate 

Set an event delegate to receive notifications about the in-app message display lifecycle. By implementing the event delegate, you can track when messages are shown or closed, control whether messages can be displayed based on the state of your app, and manage the view hierarchy when messages appear.

Track View States 

Track message view states by implementing delegate methods that notify your app when an in-app message appears or closes. Use these methods to pause or resume animations, update UI state, track analytics, and manage app behavior based on message visibility.

Control Message Display 

Prevent or delay message display by using the shouldShow 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 face used in in-app messages to match your app’s branding. Override the default system font for titles, body text, buttons, and tertiary text labels by passing a valid font name to the SDK.

Push Permission Authorization 

Configure push permission authorization for Push Primers, which are in-app messages that educate users about the benefits of push notifications. Control which specific push notification permissions are requested when users interact with a Push Primer, such as alerts, sounds, or badges.