Getting Started
설치 단계 및 이 플러그인의 전체 마크다운 가이드를 포함한 설정 지시를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-intercom`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/intercom/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
설치 제목bun add @capgo/capacitor-intercombunx cap sync수입
수입 제목import { CapgoIntercom } from '@capgo/capacitor-intercom';API 개요
API 개요loadWithKeys
__CAPGO_KEEP_0__ 로드API 키를 런타임에 초기화하여 Intercom을 사용하세요. capacitor.config에서 키를 구성하지 않으려면 이 옵션을 사용하세요.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.loadWithKeys({} as IntercomLoadOptions);registerIdentifiedUser
__CAPGO_KEEP_0__ 사용자 등록Intercom에서 알려진 사용자를 등록하세요. userId 또는 email 중 하나 이상을 제공해야 합니다.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.registerIdentifiedUser({} as IntercomIdentifiedUserOptions);registerUnidentifiedUser
__CAPGO_KEEP_0__ 익명 사용자 등록Intercom에서 익명 사용자를 등록하세요.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.registerUnidentifiedUser();updateUser
__CAPGO_KEEP_0__ 사용자 업데이트Intercom에서 사용자 속성을 업데이트하세요.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.updateUser({} as IntercomUserUpdateOptions);logout
로그아웃 섹션Intercom에서 사용자를 로그아웃합니다.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.logout();logEvent
로그이벤트 섹션Intercom에서 사용자 정의 이벤트를 로깅합니다.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.logEvent({} as IntercomLogEventOptions);displayMessenger
Intercom 메신저 열기클립보드 복사
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayMessenger();displayMessageComposer
클립보드 복사메시지 컴포저에 미리 채워진 메시지로 열기
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayMessageComposer({} as IntercomMessageComposerOptions);displayHelpCenter
displayHelpCenter 제목인터콤 도움말 센터를 열어주세요.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayHelpCenter();hideMessenger
hideMessenger 제목인터콤 메신저를 숨기세요.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideMessenger();displayLauncher
displayLauncher 제목인터콤 런처 버튼을 표시하세요.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayLauncher();hideLauncher
hideLauncher 제목인터콤 런처 버튼을 숨기세요.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideLauncher();displayInAppMessages
displayInAppMessages 섹션Intercom에서 앱 내 메시지 활성화
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayInAppMessages();hideInAppMessages
hideInAppMessages 섹션Intercom에서 앱 내 메시지 비활성화
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideInAppMessages();displayCarousel
Intercom 카러셀 표시클립보드 복사
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayCarousel({} as IntercomCarouselOptions);displayArticle
클립보드 복사Intercom 기사 표시
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayArticle({} as IntercomArticleOptions);displaySurvey
displaySurvey 섹션특정 Intercom 설문조사를 표시합니다.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displaySurvey({} as IntercomSurveyOptions);setUserHash
setUserHash 섹션인증을 위한 HMAC를 설정합니다.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setUserHash({} as IntercomUserHashOptions);setUserJwt
setUserJwt 섹션안전한 메신저 인증을 위한 JWT를 설정합니다.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setUserJwt({} as IntercomUserJwtOptions);setBottomPadding
setBottomPadding 섹션Intercom 메신저 UI의 하단 패딩을 설정합니다.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setBottomPadding({} as IntercomBottomPaddingOptions);sendPushTokenToIntercom
sendPushTokenToIntercom인터콤으로 푸시 토큰 전송
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.sendPushTokenToIntercom({} as IntercomPushTokenOptions);receivePush
receivePush인터콤 푸시 알림 수신 처리
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.receivePush({} as IntercomPushNotificationData);getUnreadConversationCount
getUnreadConversationCount현재 사용자의 읽지 않은 대화 수
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.getUnreadConversationCount();타입 참조
타입 참조IntercomLoadOptions
IntercomLoadOptions 섹션export interface IntercomLoadOptions { appId?: string; apiKeyIOS?: string; apiKeyAndroid?: string;}IntercomIdentifiedUserOptions
IntercomIdentifiedUserOptions 섹션export interface IntercomIdentifiedUserOptions { userId?: string; email?: string;}IntercomUserUpdateOptions
IntercomUserUpdateOptions 섹션export interface IntercomUserUpdateOptions { userId?: string; email?: string; name?: string; phone?: string; languageOverride?: string; customAttributes?: { [key: string]: any }; companies?: IntercomCompany[];}IntercomLogEventOptions
IntercomLogEventOptions 섹션export interface IntercomLogEventOptions { name: string; data?: { [key: string]: any };}IntercomMessageComposerOptions
IntercomMessageComposerOptions 섹션export interface IntercomMessageComposerOptions { message: string;}IntercomCarouselOptions
IntercomCarouselOptions 섹션export interface IntercomCarouselOptions { carouselId: string;}IntercomArticleOptions
IntercomArticleOptions 섹션export interface IntercomArticleOptions { articleId: string;}IntercomSurveyOptions
IntercomSurveyOptions 섹션export interface IntercomSurveyOptions { surveyId: string;}IntercomUserHashOptions
IntercomUserHashOptions 섹션export interface IntercomUserHashOptions { hmac: string;}IntercomUserJwtOptions
IntercomUserJwtOptions 섹션export interface IntercomUserJwtOptions { jwt: string;}IntercomBottomPaddingOptions
IntercomBottomPaddingOptions 섹션export interface IntercomBottomPaddingOptions { value: number;}IntercomPushTokenOptions
IntercomPushTokenOptions 섹션export interface IntercomPushTokenOptions { value: string;}원본
원본이 페이지는 플러그인의 src/definitions.ts공개 API이 업스트림에서 변경될 때 다시 싱크를 실행하세요.
시작하기
시작하기시작하기 시작하기 to plan dashboard and API operations, connect it with Using @capgo/capacitor-intercom for the native capability in Using @capgo/capacitor-intercom, API 개요 API 개요 구현 세부 사항에 대해 Introduction __CAPGO_KEEP_0__ 키 구현 세부 사항에 대해 API Keys API 키 및 장치 구현 세부 사항에 대해 Devices __CAPGO_KEEP_0__