跳过内容

@capgo/capacitor-intercom

Intercom Capacitor 插件

概述

概述

Intercom Capacitor 插件。

  • loadWithKeys - 在运行时使用 API 密钥初始化 Intercom。使用此方法如果您不想在 capacitor.config 中配置密钥。
  • registerIdentifiedUser - 使用 userId 或 email 中至少一个注册已知用户到 Intercom。
  • registerUnidentifiedUser - 使用 Intercom 注册匿名用户。
  • updateUser - 在 Intercom 中更新用户属性。
方法描述
loadWithKeys在运行时使用 API 密钥初始化 Intercom。使用此方法如果您不想在 capacitor.config 中配置密钥。
registerIdentifiedUser在 Intercom 中注册已知用户。至少需要提供一个 userId 或 email。
registerUnidentifiedUser在 Intercom 中注册匿名用户。
updateUser在 Intercom 中更新用户属性。
logout在 Intercom 中注销用户。
logEvent在 Intercom 中记录自定义事件。
displayMessenger打开 Intercom 消息器。
displayMessageComposer打开带有预填写消息的消息编辑器。
displayHelpCenter打开 Intercom 帮助中心。
hideMessenger隐藏 Intercom 消息器。
displayLauncher显示 Intercom 启动按钮。
hideLauncher隐藏 Intercom 启动按钮。
displayInAppMessages在 Intercom 中启用应用内消息。
hideInAppMessages关闭 Intercom 应用内消息。
displayCarousel显示特定的 Intercom 轮播。
displayArticle显示特定的 Intercom 文章。
displaySurvey显示特定的 Intercom 调查。
setUserHash设置身份验证的 HMAC 值。
setUserJwt设置安全的消息者认证 JWT 值。
setBottomPadding设置 Intercom 消息者 UI 底部间距。
sendPushTokenToIntercom将推送通知令牌发送到 Intercom。
receivePush处理接收到的 Intercom 推送通知。
getUnreadConversationCount获取当前用户的未读对话数。
addListener监听 Intercom 窗口显示事件。
addListener监听 Intercom 窗口隐藏事件。
addListener监听未读会话计数的变化。
removeAllListeners移除所有事件监听器。

真实数据来源

真实数据来源

此参考资料是从 src/definitions.tscapacitor-intercom.

从@capgo/capacitor-intercom继续

标题:从@capgo/capacitor-intercom继续

如果您正在使用 @capgo/capacitor-intercom 来规划原生插件工作,连接它 使用@capgo/capacitor-intercom 为@capgo/capacitor-intercom原生能力 Capgo 插件目录 为Capgo 插件目录中的产品工作流 Capacitor 由Capgo的插件 为Capacitor 由Capgo的插件实现细节 添加或更新插件 为添加或更新插件的实现细节,并且 Ionic 企业插件替代方案 为Ionic 企业插件替代方案中的产品工作流