Guide
Intercom에 대한 튜토리얼
@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 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 플러그인 추가 또는 업데이트 Capacitor-Intercom 플러그인에 대한 구현 세부 정보를 추가하거나 업데이트하는 경우.