가이드
인터콤에 대한 튜토리얼
인터콤 @capgo/capacitor-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을 사용하여 Intercom을 런타임에 초기화합니다. 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/
capgo/capacitor-intercom을 사용하여 계속하세요.
__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intercom을 사용하는 경우 capgo/capacitor-intercom을 사용하여 __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intercom을 연결하여 capgo/capacitor-intercom의 구현 세부 정보를 참조하세요. for the implementation detail in @capgo/capacitor-intercom, 시작하기의 구현 세부 정보를 참조하세요. __CAPGO_KEEP_0__ 플러그인 디렉토리 Capgo 플러그인 디렉토리의 제품 워크플로우를 참조하세요. Capgo 플러그인들에 의해 __CAPGO_KEEP_1__ Capacitor Plugins by Capgo 구현 세부 사항에 대한 정보는 Capacitor 플러그인에 의해 Capgo 에서 제공됩니다. 플러그인 추가 또는 업데이트 구현 세부 사항에 대한 정보는 플러그인 추가 또는 업데이트 에서 제공됩니다.