시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드가 포함된 설정 프롬프트를 복사하세요.
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.
플러그인을 설치하기 위해 AI-Assisted Setup을 사용할 수 있습니다. AI 도구에 Capgo 스킬을 추가하려면 다음 명령어를 사용하세요:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins다음과 같은 프롬프트를 사용하세요:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-intercom` plugin in my project.만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼에 따라서 지시를 따르세요:
bun add @capgo/capacitor-intercombunx cap syncimport { CapgoIntercom } from '@capgo/capacitor-intercom';loadWithKeys
Copy to clipboardInitialize Intercom with API keys at runtime. Use this if you prefer not to configure keys in capacitor.config.
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.loadWithKeys({} as IntercomLoadOptions);registerIdentifiedUser
Copy to clipboardSection titled “Import”
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.registerIdentifiedUser({} as IntercomIdentifiedUserOptions);registerUnidentifiedUser
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.registerUnidentifiedUser();updateUser
__CAPGO_KEEP_3____CAPGO_KEEP_4__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.updateUser({} as IntercomUserUpdateOptions);logout
__CAPGO_KEEP_6____CAPGO_KEEP_7__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.logout();logEvent
__CAPGO_KEEP_9____CAPGO_KEEP_10__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.logEvent({} as IntercomLogEventOptions);displayMessenger
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayMessenger();displayMessageComposer
__CAPGO_KEEP_3____CAPGO_KEEP_4__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayMessageComposer({} as IntercomMessageComposerOptions);displayHelpCenter
__CAPGO_KEEP_6____CAPGO_KEEP_7__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayHelpCenter();hideMessenger
__CAPGO_KEEP_9____CAPGO_KEEP_10__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideMessenger();displayLauncher
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayLauncher();hideLauncher
__CAPGO_KEEP_3____CAPGO_KEEP_4__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideLauncher();displayInAppMessages
__CAPGO_KEEP_6____CAPGO_KEEP_7__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayInAppMessages();hideInAppMessages
__CAPGO_KEEP_9____CAPGO_KEEP_10__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideInAppMessages();displayCarousel
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayCarousel({} as IntercomCarouselOptions);displayArticle
__CAPGO_KEEP_3____CAPGO_KEEP_4__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayArticle({} as IntercomArticleOptions);displaySurvey
__CAPGO_KEEP_6____CAPGO_KEEP_7__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displaySurvey({} as IntercomSurveyOptions);setUserHash
__CAPGO_KEEP_9____CAPGO_KEEP_10__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setUserHash({} as IntercomUserHashOptions);setUserJwt
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setUserJwt({} as IntercomUserJwtOptions);setBottomPadding
__CAPGO_KEEP_0____CAPGO_KEEP_3__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setBottomPadding({} as IntercomBottomPaddingOptions);sendPushTokenToIntercom
__CAPGO_KEEP_0____CAPGO_KEEP_5__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.sendPushTokenToIntercom({} as IntercomPushTokenOptions);receivePush
__CAPGO_KEEP_0____CAPGO_KEEP_7__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.receivePush({} as IntercomPushNotificationData);getUnreadConversationCount
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.getUnreadConversationCount();__CAPGO_KEEP_3__
__CAPGO_KEEP_4__IntercomLoadOptions
__CAPGO_KEEP_5__export interface IntercomLoadOptions { appId?: string; apiKeyIOS?: string; apiKeyAndroid?: string;}IntercomIdentifiedUserOptions
__CAPGO_KEEP_7__export interface IntercomIdentifiedUserOptions { userId?: string; email?: string;}IntercomUserUpdateOptions
__CAPGO_KEEP_9__export interface IntercomUserUpdateOptions { userId?: string; email?: string; name?: string; phone?: string; languageOverride?: string; customAttributes?: { [key: string]: any }; companies?: IntercomCompany[];}IntercomLogEventOptions
__CAPGO_KEEP_11__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
인터콤 하단 여백 옵션export interface IntercomBottomPaddingOptions { value: number;}IntercomPushTokenOptions
인터콤 푸시 토큰 옵션export interface IntercomPushTokenOptions { value: string;}진실의 근원
진실의 근원이 페이지는 플러그인의 src/definitions.ts업스트림에서 pubic API이 변경되었을 때 다시 싱크를 실행하세요.
Getting Started에서 계속
Getting Started에서 계속이미 사용 중이라면 시작하기 API 대시보드와 API 운영을 계획하고 연결하는 capgo/capacitor-intercom을 사용하는 capgo/capacitor-intercom을 사용하는 capgo의 원시 기능에 대해 API 개요 API 개요의 구현 세부 정보에 대해 소개 소개의 구현 세부 정보에 대해 API 키 API 키의 구현 세부 정보에 대해 장치 장치의 구현 세부 정보에 대해