メインコンテンツにジャンプ
プラグインに戻る
@capgo/capacitor-intercom
チュートリアル
@capgo/capacitor-intercom

Intercom

Integrate Intercom live chat, help center, and support workflows in your Capacitor app

Capgoで表示

ガイド

Using @capgo/capacitor-intercom

Intercom Capacitor plugin.

IntercomのCapacitorプラグイン

bun add @capgo/capacitor-intercom
bunx cap sync

インストール

  • loadWithKeys - Initialize Intercom with API keys at runtime. Use this if you prefer not to configure keys in capacitor.config.
  • registerIdentifiedUser -実行時にCapacitorのキーを使用してIntercomを初期化します。Capacitor.configでキーを設定するのを避ける場合はこちらを使用してください。
  • registerUnidentifiedUser - Intercom に匿名ユーザーを登録します。
  • updateUser - Intercom にユーザー属性を更新します。

例の使用

loadWithKeys

実行時に API キーを使用して Intercom を初期化します。 capacitor.config にキーを設定するのを避けたい場合は、これを使用してください。

import { CapgoIntercom } from '@capgo/capacitor-intercom';

await CapgoIntercom.loadWithKeys({} as IntercomLoadOptions);

registerIdentifiedUser

Intercom に既知のユーザーを登録します。少なくとも userId または email の 1 つが提供されている必要があります。

import { CapgoIntercom } from '@capgo/capacitor-intercom';

await CapgoIntercom.registerIdentifiedUser({} as IntercomIdentifiedUserOptions);

registerUnidentifiedUser

- Intercom に匿名ユーザーを登録します。

import { CapgoIntercom } from '@capgo/capacitor-intercom';

await CapgoIntercom.registerUnidentifiedUser();

updateUser

- Intercom にユーザー属性を更新します。

import { CapgoIntercom } from '@capgo/capacitor-intercom';

await CapgoIntercom.updateUser({} as IntercomUserUpdateOptions);

フル リファレンス

Using @capgo/capacitor-intercom から続けてください。

Capacitorを使用している場合 Using @capgo/capacitor-intercom Capacitor-Intercomを接続 @capgo/capacitor-intercom for the implementation detail in @capgo/capacitor-intercom, Capacitor-Intercomの実装詳細 Capacitorプラグインディレクトリ Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and Capacitor-Intercom Capacitor-Intercomプラグインの追加または更新の実装詳細について。