メインコンテンツにジャンプ
プラグインに戻る
@capgo/capacitor-crisp
チュートリアル
@capgo/capacitor-crisp

クリスプ

Integrate Crisp live chat and customer support directly into your mobile app

Guide

Tutorial on Crisp

Using @capgo/capacitor-crisp

Crisp Chat SDK Plugin for Capacitor. Provides live chat and customer support functionality through Crisp.chat.

Install

bun add @capgo/capacitor-crisp
bunx cap sync

What This Plugin Exposes

  • configure - Configure the Crisp SDK with your website ID. Must be called before using any other methods.
  • openMessenger - Open the Crisp messenger chat window. Shows the chat interface to the user.
  • setTokenID - Set a unique token ID for the current user session. Used to identify and restore previous conversations.
  • setUser -

Example Usage

configure

Configure the Crisp SDK with your website ID. Must be called before using any other methods.

import { CapacitorCrisp } from '@capgo/capacitor-crisp';

await CrispPlugin.configure({ websiteID: 'YOUR_WEBSITE_ID' });

openMessenger

-

import { CapacitorCrisp } from '@capgo/capacitor-crisp';

await CapacitorCrisp.openMessenger();

setTokenID

Example Usage

import { CapacitorCrisp } from '@capgo/capacitor-crisp';

await CapacitorCrisp.setTokenID({} as { tokenID: string });

setUser

Set user information for the current session. Updates the user profile visible to support agents.

import { CapacitorCrisp } from '@capgo/capacitor-crisp';

await CrispPlugin.setUser({
  nickname: 'John Doe',
  email: 'john@example.com',
  phone: '+1234567890'
});

Open the Crisp messenger chat window. Shows the chat interface to the user. (Crisp __CAPGO_KEEP_0__ IDを設定してください。使用する他のメソッドを使用する前に呼び出してください。)

capgoで使用している場合、@capgo/capacitor-crispから続けてください。

__CAPGO_KEEP_0__を使用している場合、 @capgo/capacitor-crispを使用してください。 ビジネス用の移行とエンタープライズオペレーションの計画を行う場合、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-crispと接続してください。 @capgo/capacitor-crispの実装詳細については、@capgo/capacitor-crispを参照してください。 for the implementation detail in @capgo/capacitor-crisp, Getting Startedの実装詳細については、Getting Startedを参照してください。 __CAPGO_KEEP_0__ Enterprise Capgo Enterprise Capgo での製品ワークフローについて Ionic Enterprise プラグインの代替 __CAPGO_KEEP_0__ プラグインの代替 Capgo での製品ワークフローについて for the product workflow in Capgo Alternatives.