__CAPGO_KEEP_0__

Getting Started

GitHub

설치

설치

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-intercom
bunx cap sync

Import

Import
import { CapgoIntercom } from '@capgo/capacitor-intercom';

API 키를 런타임에 초기화하여 capacitor.config에서 키를 구성하지 않으려면 사용하세요.

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

registerIdentifiedUser

제목 "registerIdentifiedUser"

알려진 사용자를 Intercom에 등록합니다. 사용자 ID 또는 이메일 중 하나 이상을 제공해야 합니다.

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

registerUnidentifiedUser

제목 "registerUnidentifiedUser"

익명 사용자를 Intercom에 등록합니다.

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

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

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

Intercom에서 사용자를 로그아웃하세요.

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

Intercom에서 사용자 정의 이벤트를 로그하세요.

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

displayMessenger

메신저 표시 섹션

Intercom 메신저를 열세요.

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

메시지 작성을 위한 오픈한 채팅 창을 열어주세요.

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

인터콤 도움말 센터를 열어주세요.

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

인터콤 메신저를 숨기세요.

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

인터콤 런처 버튼을 표시하세요.

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

인터콤 런처 버튼을 숨기세요.

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

인터콤에서 앱 내 메시지를 활성화하세요.

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

인터콤에서 앱 내 메시지를 비활성화하세요.

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

특정 인터콤 카러셀을 표시하세요.

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

특정 Intercom 문서를 표시합니다.

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

특정 Intercom 설문조사를 표시합니다.

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

사용자 식별성을 확인하기 위한 HMAC 설정합니다.

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

안전한 메신저 인증을 위한 JWT 설정합니다.

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

__CAPGO_KEEP_0__

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

sendPushTokenToIntercom

__CAPGO_KEEP_2__

__CAPGO_KEEP_3__

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

receivePush

__CAPGO_KEEP_2__

__CAPGO_KEEP_4__

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

getUnreadConversationCount

__CAPGO_KEEP_1__

__CAPGO_KEEP_5__

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

__CAPGO_KEEP_7__

타입 참조 섹션
export interface IntercomLoadOptions {
appId?: string;
apiKeyIOS?: string;
apiKeyAndroid?: string;
}

IntercomIdentifiedUserOptions

인터콤 식별된 사용자 옵션 섹션
export interface IntercomIdentifiedUserOptions {
userId?: string;
email?: string;
}
export interface IntercomUserUpdateOptions {
userId?: string;
email?: string;
name?: string;
phone?: string;
languageOverride?: string;
customAttributes?: { [key: string]: any };
companies?: IntercomCompany[];
}
export interface IntercomLogEventOptions {
name: string;
data?: { [key: string]: any };
}

IntercomMessageComposerOptions

인터콤 메시지 컴포저 옵션 섹션
export interface IntercomMessageComposerOptions {
message: string;
}

IntercomCarouselOptions

인터콤 캐러셀 옵션 섹션
export interface IntercomCarouselOptions {
carouselId: string;
}

IntercomArticleOptions

인터콤 옵션 항목
export interface IntercomArticleOptions {
articleId: string;
}

IntercomSurveyOptions

인터콤 설문 옵션 항목
export interface IntercomSurveyOptions {
surveyId: string;
}
export interface IntercomUserHashOptions {
hmac: string;
}
export interface IntercomUserJwtOptions {
jwt: string;
}

IntercomBottomPaddingOptions

인터콤 하단 패딩 옵션 항목
export interface IntercomBottomPaddingOptions {
value: number;
}
export interface IntercomPushTokenOptions {
value: string;
}

실질적인 출처

실질적인 출처 섹션

이 페이지는 플러그인의 src/definitions.ts를 다시 동기화하세요. upstream에서 API가 공개되면.

Getting Started에서 계속

Getting Started에서 계속

이 플러그인을 사용하는 경우 Getting Started 계획 대시보드 및 API 운영을 위해 Using @capgo/capacitor-intercom Using @capgo/capacitor-intercom API 개요 API 개요에 대한 구현 세부 정보를 위해 소개 소개에 대한 구현 세부 정보를 위해 API 키 API 키에 대한 구현 세부 정보를 위해, 그리고 장치 장치에 대한 구현 세부 정보를 위해