Prevent or Delay Message Display
Delay or prevent the display of an in-app message by using the shouldShow method. For example, you can choose to prevent an in-app message from displaying during the loading process, sign-in flow, and other situations. To prevent or delay message display, set the shouldShow method to return false.
You can capture in-app message data and use it to display the message later. For example, you can present the message after the user successfully signs in.
Use this code to show a captured message later in version 11 of the SDK for iOS.
Access the message ID in the InAppMessageDetails object within the delegate. Trigger the display through the InAppMessagingFeature module by using these methods:
message.id(property of InAppMessageDetails)showInAppMessage
Use this code to show a captured message later in version 10 of the SDK for iOS.
Use these methods:
sfmc_messageIdForMessagesfmc_showInAppMessage
Use this code to show a captured message later in version 8.1 of the SDK for iOS.
Use this code to show a captured message later in version 8.0 of the SDK for iOS.
Use this code to show a captured message later in version 7 of the SDK for iOS.