ガイド
Intercomのチュートリアル
Using @capgo/capacitor-intercom
Intercom Capacitor plugin.
インストール
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-Intercomにユーザーを登録します。少なくともuserIdまたはemailのいずれかを指定してください。registerUnidentifiedUser- Intercom に匿名ユーザーを登録します。updateUser- Intercom にユーザー属性を更新します。
Example Usage
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);
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-intercom/
- Docs: /docs/plugins/intercom/
Using @capgo/capacitor-intercom から続けてください。
If you are using Using @capgo/capacitor-intercom Capacitor-Intercomを使用して @capgo/capacitor-intercom for the implementation detail in @capgo/capacitor-intercom, Getting Started Capacitor-Intercomの実装詳細 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プラグインの追加または更新の実装詳細について。