首页 > 解决方案 > 如何在 React JS 应用程序中显示 Appboy HTML inAppMessage

问题描述

我需要在我的 React JS 应用程序中显示一个弹出的 inAppMessage HTML。这是我的代码库

export const displayCustomInAppHTMLMessage = msgTxt => {
  const message = new appboy.HtmlMessage(msgTxt);
  appboy.display.showInAppMessage(message);
};

但这并没有显示任何弹出窗口。有人可以帮忙吗?谢谢

标签: reactjsappboy

解决方案


要显示 HTML inAppMessage 我们需要设置enableHtmlInAppMessagestruewhile 初始化代码

https://www.braze.com/docs/user_guide/message_building_by_channel/in-app_messages/customize/#custom-html-messages


推荐阅读