In-App Messaging

This section provides API reference details for the In-App Messaging module in React Native unified plugin.

showInAppMessage

Displays a specific in-app message by its identifier.

Syntax

InAppMessagingSdkModule.showInAppMessage(messageId);

Parameters

Parameter Type Description
messageId string The in-app message ID to display. Use a valid message ID from your in-app message configuration.

Returns

  • void

Example

import { IamModule } from "@sfmc/react-native-iam";
import type { IamApi } from "@sfmc/react-native-iam";

const iam: IamApi = await IamModule.requestSdk();
iam.showInAppMessage("message-id");

See Also