Getting Started
__CAPGO_KEEP_1__를 복사하여 __CAPGO_KEEP_0__를 설정하기 위한 지시를 입력하세요.
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.
__CAPGO_KEEP_7__
__CAPGO_KEEP_8__Capgo을 사용하여 플러그인을 설치할 수 있습니다. 다음 명령어를 사용하여 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
‘Import’라는 제목의 섹션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
__CAPGO_KEEP_1____CAPGO_KEEP_2__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.logout();logEvent
__CAPGO_KEEP_1____CAPGO_KEEP_3__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.logEvent({} as IntercomLogEventOptions);displayMessenger
__CAPGO_KEEP_1____CAPGO_KEEP_4__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayMessenger();displayMessageComposer
__CAPGO_KEEP_1____CAPGO_KEEP_5__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayMessageComposer({} as IntercomMessageComposerOptions);displayHelpCenter
__CAPGO_KEEP_1____CAPGO_KEEP_2__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayHelpCenter();hideMessenger
__CAPGO_KEEP_1____CAPGO_KEEP_3__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideMessenger();displayLauncher
__CAPGO_KEEP_1____CAPGO_KEEP_4__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayLauncher();hideLauncher
__CAPGO_KEEP_1____CAPGO_KEEP_5__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideLauncher();displayInAppMessages
__CAPGO_KEEP_1__ (displayInAppMessages)__CAPGO_KEEP_2__ Intercom의 앱 내 메시지 활성화
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayInAppMessages();hideInAppMessages
__CAPGO_KEEP_1__ (hideInAppMessages)__CAPGO_KEEP_2__ Intercom의 앱 내 메시지 비활성화
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideInAppMessages();displayCarousel
__CAPGO_KEEP_1__ (displayCarousel)__CAPGO_KEEP_2__ 특정 Intercom 카러셀 표시
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayCarousel({} as IntercomCarouselOptions);displayArticle
__CAPGO_KEEP_1__ (displayArticle)__CAPGO_KEEP_2__ 특정 Intercom 기사 표시
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayArticle({} as IntercomArticleOptions);displaySurvey
__CAPGO_KEEP_1____CAPGO_KEEP_2__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displaySurvey({} as IntercomSurveyOptions);setUserHash
__CAPGO_KEEP_1____CAPGO_KEEP_3__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setUserHash({} as IntercomUserHashOptions);setUserJwt
__CAPGO_KEEP_1____CAPGO_KEEP_4__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setUserJwt({} as IntercomUserJwtOptions);setBottomPadding
__CAPGO_KEEP_1____CAPGO_KEEP_5__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.setBottomPadding({} as IntercomBottomPaddingOptions);sendPushTokenToIntercom
__CAPGO_KEEP_1____CAPGO_KEEP_2__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.sendPushTokenToIntercom({} as IntercomPushTokenOptions);receivePush
__CAPGO_KEEP_3____CAPGO_KEEP_4__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.receivePush({} as IntercomPushNotificationData);getUnreadConversationCount
__CAPGO_KEEP_5____CAPGO_KEEP_6__
import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.getUnreadConversationCount();__CAPGO_KEEP_7__
__CAPGO_KEEP_8__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. upstream의 공공 API이 변경될 때 다시 싱크를 실행하세요.
시작하기
시작하기이 플러그인을 사용하시나요? 시작하기 to plan dashboard and API operations, connect it with Using @capgo/capacitor-intercom for the native capability in Using @capgo/capacitor-intercom, API Overview API 개요에 대한 구현 세부 사항에 대해 소개 __CAPGO_KEEP_0__ 키에 대한 구현 세부 사항에 대해 API 키에 대해 API에 대한 구현 세부 사항에 대해 기기 __CAPGO_KEEP_0__ 편집 페이지