In-App Messaging

Legacy In-App Messages are banner messages delivered through push notifications that appear in-app when the user opens the application.

Legacy in-app messages are delivered through push messages and automatically converted to In-App Automation (IAA) banners for display. You can customize how these messages are converted using extender blocks on the legacy in-app message manager.

 Note

This page covers legacy In-App Messages delivered via push notifications. For In-App Automation (IAA) and Scenes, which are separate features with different triggers and capabilities, see In-App Experiences.

For general In-App Automation styling options, see In-App Automation.

Modify the schedule

Modify the schedule
InAppAutomation.shared.legacyInAppMessaging.scheduleExtender = { schedule in
    // Modify the schedule
    schedule.limit = 2
}

Modify the message

Modify the message
InAppAutomation.shared.legacyInAppMessaging.messageExtender = { message in
    /// Modify the message
    if case .banner(var bannerInfo) = message.displayContent {
        bannerInfo.borderRadius = 10.0
        message.displayContent = .banner(bannerInfo)
    }
}