概述
概述部分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.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 企业插件替代方案中。