跳过内容

@capgo/capacitor-intercom

Intercom Capacitor 插件

Intercom Capacitor 插件

核心功能

核心功能部分
  • loadWithKeys - 在运行时使用 API 密钥初始化 Intercom。 如果您不想在 capacitor.config 中配置密钥,请使用此选项。
  • registerIdentifiedUser - 使用 Intercom 注册已知用户。 至少需要提供一个 userId 或 email。
  • 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 企业插件替代方案中