본문으로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-intercom
튜토리얼
github .com/Cap-go 에서

인터콤

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

가이드

인터콤 튜토리얼

인터콤 @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);

전체 참조

capgo에서 capacitor-intercom을 계속 진행하세요.

__CAPGO_KEEP_0__을 사용하고 계신가요? capgo/capacitor-intercom을 사용하고 계신가요. __CAPGO_KEEP_0__을 사용하여 capgo/capacitor-intercom과 연결하여 capgo/capacitor-intercom의 구현 세부 정보를 참조하세요. 시작하기 __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intercom의 구현 세부 정보를 참조하세요. Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리의 제품 워크플로우를 참조하세요. Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 정보에 대해 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트의 구현 세부 정보에 대해.