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

Intercom

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

ガイド

Intercom についてのチュートリアル

@capgo/capacitor-intercom の使用

Capacitor プラグイン

インストール

bun add @capgo/capacitor-intercom
bunx cap sync

このプラグインが公開するもの

  • loadWithKeys - API を実行時で初期化する。 capacitor.config にキーを設定しない場合はこちらを使用してください。
  • registerIdentifiedUser - Intercom に既知のユーザーを登録します。少なくとも userId または email の 1 つが必要です。
  • registerUnidentifiedUser - Intercom に匿名ユーザーを登録します。
  • updateUser - Intercom にユーザー属性を更新します。

- 使用例

loadWithKeys

- API を実行時で初期化する。 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);

- 完全なリファレンス

@capgo/capacitor-intercomを使用し続ける

Capacitorを使用している場合 @capgo/capacitor-intercomを使用して @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intercomの実装詳細を参照してください @capgo/capacitor-intercom for the implementation detail in @capgo/capacitor-intercom, @__CAPGO_KEEP_0__ プラグインディレクトリ @__CAPGO_KEEP_0__ プラグインディレクトリの製品ワークフロー @Capgo @__CAPGO_KEEP_1__ プラグイン @Capgo @__CAPGO_KEEP_1__ プラグイン @Capacitor @Capgo プラグイン for the implementation detail in Capacitor Plugins by Capgo, and プラグインの追加または更新 Capacitor Intercomプラグインの実装詳細