In-App Messaging - API reference
This document lists the public APIs available in the Messaging extension for implementing in-app messaging.
refreshInAppMessages
data-variant=info
data-slots=text
By default, the SDK will automatically fetch in-app message definitions from the remote at the time the Messaging extension is registered. This generally happens once per app lifecycle.
Some use cases may require the client to request an update from the remote more frequently. Calling the following API will force the Messaging extension to get an updated definition of messages from the remote:
Android Kotlin
data-slots=heading, code
data-repeat=1
Example
Messaging.refreshInAppMessages()
Android Java
data-slots=heading, code
data-repeat=1
Example
Messaging.refreshInAppMessages();
iOS Swift
data-slots=heading, code
data-repeat=1
Example
Messaging.refreshInAppMessages()
iOS Objective-C
data-slots=heading, code
data-repeat=1
Example
[AEPMobileMessaging refreshInAppMessages];