ガイド
__CAPGO_KEEP_0__のIntercomチュートリアル
capgo/capacitor-intercomを使用する方法
CapacitorのIntercomプラグイン。
インストール
bun add @capgo/capacitor-intercom
bunx cap sync
このプラグインが公開するもの
loadWithKeys- APIキーを使用して、capacitor.configで設定しない場合の実行時でIntercomを初期化します。registerIdentifiedUser- userIdまたはemailのいずれかを提供する場合、Intercomで知られているユーザーを登録します。registerUnidentifiedUser- Intercomで匿名ユーザーを登録します。updateUser- Intercomでユーザー属性を更新します。
使用例
loadWithKeys
APIキーを使用して、capacitor.configで設定しない場合の実行時でIntercomを初期化します。
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);
フルリファレンス
- GitHub https://github.com/Cap-go/capacitor-intercom
- ドキュメント: /docs/plugins/intercom/
Using @capgo/capacitor-intercom
Capacitorを使用している場合 Capacitorを使用してnativeプラグインの作業を計画している場合、@capgo/capacitor-intercomを接続します。 Capacitorを使用してnativeプラグインの作業を計画している場合、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intercomを接続します。 Capacitorを使用してnativeプラグインの作業を計画している場合、@capgo/capacitor-intercomを接続します。 実装詳細については @capgo/capacitor-intercom に Getting Started 実装詳細については Getting Started に Capgo プラグイン ディレクトリ 実装詳細については Capgo プラグイン ディレクトリ に Capacitor プラグイン ( Capgo による) 実装詳細については Capacitor プラグイン ( Capgo による) に プラグインの追加または更新 実装詳細については プラグインの追加または更新 に