Guide
Intercom에 대한 튜토리얼
Using @capgo/capacitor-intercom
Intercom Capacitor 플러그인.
설치
bun add @capgo/capacitor-intercom
bunx cap sync
이 플러그인은 다음을 제공합니다.
loadWithKeys- API 키를 런타임에 사용하여 Intercom을 초기화합니다. capacitor.config에서 키를 구성하지 않으려면 이 옵션을 사용하세요.registerIdentifiedUser- Intercom에 알려진 사용자를 등록합니다. userId 또는 email 중 하나가 제공되어야 합니다.registerUnidentifiedUser- Intercom에 익명 사용자를 등록하세요.updateUser- Intercom에서 사용자 속성을 업데이트하세요.
예시 사용
loadWithKeys
런타임에서 API 키를 초기화하세요. capacitor.config에서 키를 구성하지 않으려면 이 방법을 사용하세요.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.loadWithKeys({} as IntercomLoadOptions);
registerIdentifiedUser
Intercom에 알려진 사용자를 등록하세요. userId 또는 email 중 하나는 제공되어야 합니다.
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에서 계속하세요.
If you are using Using @capgo/capacitor-intercom Capacitor-Intercom을 연결하여 @capgo/capacitor-intercom for the implementation detail in @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 Capacitor Plugins by Capacitor 구현 세부 정보를 추가하거나 업데이트하는 방법에 대한 세부 정보입니다.