Landing Pages
Landing Pages are web pages triggered from a notification response that are automatically converted to HTML In-App Automation experiences.
Landing Pages are web pages triggered as an action from a notification response. When a user taps a notification with a landing page action, the landing page is automatically converted to an HTML In-App Automation experience for display.
For general In-App Automation styling options, including HTML customization, see In-App Automation.
Customize Landing Pages
You can customize landing pages by registering a custom action that extends the HTML schedule before display:
Customize landing pages
Airship.actionRegistry.registerEntry(
names: LandingPageAction.defaultNames
) {
let action = LandingPageAction() { args, schedule in
guard case .inAppMessage(var message) = schedule.data else { return }
guard case .html(var htmlContent) = message.displayContent else { return }
// Customize the HTML content
htmlContent.forceFullscreen = true
message.displayContent = .html(htmlContent)
schedule.data = .inAppMessage(message)
}
return ActionEntry(action: action)
}Custom action registration with closures is not available in Objective-C. Use Swift or subclass the action directly.
Feedback
Was this page helpful?
Thank you
Thanks for your feedback!
Tell Us More
Thank you
We will try harder!
Tell Us More
Categories