reactjs - 如何在 React JS 应用程序中显示 Appboy HTML inAppMessage
问题描述
我需要在我的 React JS 应用程序中显示一个弹出的 inAppMessage HTML。这是我的代码库
export const displayCustomInAppHTMLMessage = msgTxt => {
const message = new appboy.HtmlMessage(msgTxt);
appboy.display.showInAppMessage(message);
};
但这并没有显示任何弹出窗口。有人可以帮忙吗?谢谢
解决方案
要显示 HTML inAppMessage 我们需要设置enableHtmlInAppMessages
为true
while 初始化代码
推荐阅读
- python-3.x - 我怎样才能为这个类写一个单元测试?
- scala - Akka Cluster - 从崩溃的 actor 中恢复数据
- .htaccess - .htaccess 中不需要的重写
- html - 使用第二个旋转 div 创建 div
- sql-server - 获取下游序列号的上游用户的 SQL 查询
- javascript - Anim.js - 当我只想触发悬停的元素时输入什么作为目标
- cron - 修改一个 cronjob 使其从下个月开始每半小时运行一次
- c# - C# XML 读取和编辑子值
- excel - 如何比较 A/B 列,并从 A 列返回与 B 不匹配的值
- c# - 使用 513 个空格字符在 C# 中将文本写入文件