概述
标题:概述Intercom Capacitor 插件。
核心功能
标题:核心功能loadWithKeys- 在运行时使用 API keys 初始化 Intercom。使用此选项如果您不想在 capacitor.config 中配置密钥。registerIdentifiedUser- 使用 userId 或 email 注册已知用户。至少需要提供一个。registerUnidentifiedUser- 使用 Intercom 注册匿名用户。updateUser- 在 Intercom 中更新用户属性。
公共 API
标题:公共 API| 方法 | 描述 |
|---|---|
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 的产品工作流程。