跳过内容

@capgo/capacitor-intercom

Intercom Capacitor 插件

Intercom Capacitor 插件。

  • loadWithKeys - 在运行时使用 API keys 初始化 Intercom。使用此选项如果您不想在 capacitor.config 中配置密钥。
  • registerIdentifiedUser - 使用 userId 或 email 注册已知用户。至少需要提供一个。
  • registerUnidentifiedUser - 使用 Intercom 注册匿名用户。
  • updateUser - 在 Intercom 中更新用户属性。
方法描述
loadWithKeys在运行时使用API密钥初始化Intercom。使用此方法如果您不想在capacitor.config中配置密钥。
registerIdentifiedUser在Intercom中注册已知用户。至少需要提供一个用户ID或电子邮件。
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.ts 在 capacitor-intercom.

继续阅读@capgo/capacitor-intercom

标题:继续阅读@capgo/capacitor-intercom

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