ガイド
__CAPGO_KEEP_0__ インターコムのチュートリアル
capgo/capacitor-intercom を使用
Capacitor インターコム プラグイン
インストール
bun add @capgo/capacitor-intercom
bunx cap sync
このプラグインが公開するもの
loadWithKeys- API キーを実行時で Intercom に初期化します。 capacitor.config にキーを設定しない場合はこちらを使用してください。registerIdentifiedUser- Intercom に既知のユーザーを登録します。少なくとも userId または email の 1 つが必要です。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);
フル リファレンス
- GitHub: https://github.com/Cap-go/capacitor-intercom/
- ドキュメント: /docs/plugins/intercom/
@capgo/capacitor-intercom
Capgoを利用している場合 Using @capgo/capacitor-intercom nativeプラグインの作業を計画するには、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intercom @capgo/capacitor-intercom 実装の詳細については@capgo/capacitor-intercom Getting Started 実装の詳細についてはGetting Started 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 __CAPGO_KEEP_0__ プラグイン __CAPGO_KEEP_1__ によって