Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 912 Bytes

usage.md

File metadata and controls

33 lines (20 loc) · 912 Bytes

Usage

This document details how to use the in-app messaging APIs provided by the AEPMessaging framework.

In-App Messaging APIs

Programmatically refresh in-app message definitions from the remote

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" %}

Swift

Messaging.refreshInAppMessages()

{% endtab %}

{% tab title="Android" %}

Java

Messaging.refreshInAppMessages();

{% endtab %} {% endtabs %}