跳过内容

@capgo/capacitor-intercom

Intercom Capacitor 插件

Intercom Capacitor 插件

核心功能

Core Capabilities
  • loadWithKeys - 在运行时使用 API 密钥初始化 Intercom。使用此选项如果您不想在 capacitor.config 中配置密钥。
  • registerIdentifiedUser - 使用 userId 或 email 中至少一个注册已知用户与 Intercom。
  • registerUnidentifiedUser - 使用 Intercom 注册匿名用户。
  • updateUser - 在 Intercom 中更新用户属性。

Public API

Public API
方法描述
loadWithKeys在运行时使用 API 密钥初始化 Intercom。使用此选项如果您不想在 capacitor.config 中配置密钥。
registerIdentifiedUser使用 userId 或 email 中至少一个注册已知用户与 Intercom。
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 插件目录 在 Capgo 插件目录中管理产品工作流程 Capacitor 插件由 Capgo 提供 了解 Capacitor 插件由 Capgo 提供的实现细节 添加或更新插件 了解添加或更新插件的实现细节 Ionic Enterprise 插件替代方案 了解 Ionic Enterprise 插件替代方案的产品工作流程