This document details how to use the in-app messaging APIs provided by the AEPMessaging framework.
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, in the application(_: didFinishLaunchingWithOptions:)
method of the AppDelegate
.
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:
{% tabs %} {% tab title="iOS" %}
Messaging.refreshInAppMessages()
{% endtab %}
{% tab title="Android" %}
Messaging.refreshInAppMessages();
{% endtab %} {% endtabs %}