내용으로 건너뛰기

Getting Started

터미널 창
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);

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

클립보드 복사

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

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

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

displayLauncher

displayLauncher 제목

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

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

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

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

클립보드 복사

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

displayArticle

클립보드 복사

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

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__