메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-intercom
튜토리얼
@capgo/capacitor-intercom

인터콤

Capacitor 앱에 인터콤 라이브 채팅, 도움말 센터 및 지원 워크플로를 통합하세요

안내서

__CAPGO_KEEP_0__에 대한 튜토리얼

capgo/capacitor-intercom을 사용하는 방법

Capacitor Capacitor 플러그인

설치

bun add @capgo/capacitor-intercom
bunx cap sync

이 플러그인이 노출하는 것

  • loadWithKeys - API 키를 사용하여 API에서 Intercom을 초기화합니다. capacitor.config에서 키를 구성하지 않으려면 이 옵션을 사용하세요.
  • registerIdentifiedUser - __CAPGO_KEEP_0__에서 알려진 사용자를 등록합니다. 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);

전체 참조

Using @capgo/capacitor-intercom에서 계속하세요.

만약에 @capgo/capacitor-intercom 을 사용하고 있다면 @capgo/capacitor-intercom for the implementation detail in @capgo/capacitor-intercom, @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-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 __CAPGO_KEEP_0__ __CAPGO_KEEP_1__ 플러그인 __CAPGO_KEEP_0__ 구현 세부 사항에 대한 정보입니다.