Any details to customize the In-App messaging? Can I show a customized popup with two buttons and the header title and subtitle for the popup using Firebase In-app messaging in ios?
Any sample or details on how to customize this?
Any details to customize the In-App messaging? Can I show a customized popup with two buttons and the header title and subtitle for the popup using Firebase In-app messaging in ios?
Any sample or details on how to customize this?
On
This is my code:
class MyInAppMessagingDelegate: NSObject, InAppMessagingDelegate {
func messageClicked(_ inAppMessage: InAppMessagingDisplayMessage, campaignInfo: InAppMessagingCampaignInfo?) {
// Check if the message is of type InAppMessagingModalDisplay
guard let modalDisplay = inAppMessage.displayInfo as? InAppMessagingModalDisplay else {
return
}
// Check the button ID to perform specific actions
if inAppMessage.triggerAction.actionButton?.buttonId == "updateButton" {
// Handle Update button click
// Add your custom logic here
} else if inAppMessage.triggerAction.actionButton?.buttonId == "cancelButton" {
// Handle Cancel button click
// Add your custom logic here
}
}
}
you can try this for two button (update and cancel)
To customize the display of In-App Messages in your app, you need to implement the FIRInAppMessagingDisplayDelegate protocol. This allows you to provide a custom display for your In-App Messages.
Here's an example of how you can customize the In-App Message display:
I hope this can help you