내용으로 건너뛰기

Getting Started

GitHub

__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-intercom
bunx cap sync
import { CapgoIntercom } from '@capgo/capacitor-intercom';

API 개요

API 개요

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();

Intercom에서 사용자 속성을 업데이트하세요.

import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.updateUser({} as IntercomUserUpdateOptions);

__CAPGO_KEEP_2__

import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.logout();

__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();

__CAPGO_KEEP_2__ Intercom의 앱 내 메시지 활성화

import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayInAppMessages();

__CAPGO_KEEP_2__ Intercom의 앱 내 메시지 비활성화

import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.hideInAppMessages();

__CAPGO_KEEP_2__ 특정 Intercom 카러셀 표시

import { CapgoIntercom } from '@capgo/capacitor-intercom';
await CapgoIntercom.displayCarousel({} as IntercomCarouselOptions);

__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);

__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;
}
export interface IntercomArticleOptions {
articleId: string;
}
export interface IntercomSurveyOptions {
surveyId: string;
}
export interface IntercomUserHashOptions {
hmac: string;
}
export interface IntercomUserJwtOptions {
jwt: string;
}

IntercomBottomPaddingOptions

IntercomBottomPaddingOptions 섹션 제목
export interface IntercomBottomPaddingOptions {
value: number;
}
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__ 편집 페이지