跳过内容

@capgo/capacitor-intercom

Intercom Capacitor 插件

Intercom Capacitor 插件

核心功能

核心功能部分
  • loadWithKeys - 在运行时使用 API 密钥初始化 Intercom。 如果您不想在 capacitor.config 中配置密钥,请使用此选项。
  • registerIdentifiedUser - 使用 Intercom 注册已知用户。 至少需要提供 userId 或 email 中的一个值。
  • registerUnidentifiedUser - 使用 Intercom 注册匿名用户。
  • updateUser - 在 Intercom 中更新用户属性。

公共 API

公共 API
方法描述
loadWithKeys在运行时使用 API 密钥初始化 Intercom。 如果您不想在 capacitor.config 中配置密钥,请使用此选项。
registerIdentifiedUser使用 Intercom 注册已知用户。 至少需要提供 userId 或 email 中的一个值。
registerUnidentifiedUser使用 Intercom 注册匿名用户。
updateUser在 Intercom 中更新用户属性。
logout__CAPGO_KEEP_0__
logEvent__CAPGO_KEEP_0__
displayMessenger__CAPGO_KEEP_0__
displayMessageComposer__CAPGO_KEEP_0__
displayHelpCenter__CAPGO_KEEP_0__
hideMessenger__CAPGO_KEEP_0__
displayLauncher__CAPGO_KEEP_0__
hideLauncher__CAPGO_KEEP_0__
displayInAppMessages__CAPGO_KEEP_0__
hideInAppMessages__CAPGO_KEEP_0__
displayCarousel__CAPGO_KEEP_0__
displayArticle__CAPGO_KEEP_0__
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 企业插件替代方案 为产品工作流程在 Ionic 企业插件替代方案中。