ガイド
Intercomのチュートリアル
使用方法:@capgo/capacitor-intercom
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 を使用して、@capgo/capacitor-intercom から続けてください。
__CAPGO_KEEP_0__ を使用している場合 @capgo/capacitor-intercom を使用して ネイティブ プラグインの作業を計画する場合、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intercom を接続してください。 @capgo/capacitor-intercom の実装詳細については、@capgo/capacitor-intercom を参照してください。 for the implementation detail in @capgo/capacitor-intercom, Getting Started の実装詳細については、Getting Started を参照してください。 __CAPGO_KEEP_0__ プラグイン ディレクトリ Capgo Plugin Directory 製品ワークフローについての Capgo プラグインディレクトリ Capacitor プラグインは Capgo によって提供されます 実装詳細については Capacitor プラグインは Capgo によって提供されます、そして プラグインの追加または更新 実装詳細についてはプラグインの追加または更新