Why are my in-app messages dismissing unexpectedly after one second?

In-app messages will attempt to render upon being received from Mixpanel’s server when the app is opened. They can be unexpectedly dismissed when there's a segue or change in the view controller at the same point the in-app message appears.

This is especially common in apps with loading views prior to bringing the user to the main view of the app.

To prevent this from happening, customize the display behavior of your in-app messages by:

  • Turning off automatic message rendering for in-app messages with mixpanel.showNotificationOnActive=NO (see full documentation)

  • Only calling to show in-app messages on the relevant view with showNotification (see full documentation)