Track Message View States

Use the didShowMessage and didCloseMessage callback methods to help manage the view state of your app. In-app messages are shown in an activity controlled by the SDK within the activity stack for your app. Your app is required to respond to a view appearing or disappearing.

  • didShowMessage is invoked when the in-app message is initially presented.

  • didCloseMessage is invoked after the user closes the message and includes the close reason.

Implement these methods as part of your event listener. See Listen for Events.