Guide
Intercom에 대한 튜토리얼
Using @capgo/capacitor-intercom
Intercom Capacitor plugin.
설치
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에서 계속하세요.
Capacitor를 사용 중이라면 Capacitor @capgo/capacitor-intercom Capacitor를 사용하여 네이티브 플러그인 작업을 계획하고자 한다면, @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intercom Capacitor @capgo/capacitor-intercom Capacitor @capgo/capacitor-intercom Capacitor 시작하기 Capacitor 시작하기 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 플러그인 추가 또는 업데이트 구현 세부 정보를 추가하거나 업데이트하는 데 사용되는 구현 세부 정보입니다.