Androidのタッチシグナル
インストール手順とこのプラグインの完全なマークダウンガイドを含むセットアップの質問をコピーします。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-verisoul`
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/verisoul/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.
インストール
Section titled “インストール”AI-Assisted セットアップを使用してプラグインをインストールできます。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-verisoul` plugin in my project.もし、Manual セットアップを使用したい場合は、以下のコマンドを実行してください。プラットフォーム固有の指示に従ってください。
bun add @capgo/capacitor-verisoulbunx cap syncVerisoul の設定
Section titled “Verisoul の設定”呼び出し configure() アプリ起動の初期段階で一度、使用します。 sandbox テスト用に prod 生産用トラフィック用に
import { Verisoul } from '@capgo/capacitor-verisoul';
await Verisoul.configure({ environment: 'prod', projectId: 'YOUR_PROJECT_ID',});セッションIDを取得
セクション:セッションIDを取得Verisoulが十分なネイティブ信号を収集した後、セッションIDを要求し、バックエンドに送信します。バックエンドは、リスク評価のためにVerisoulのサーバーサイドAPIを呼び出してください。
const { sessionId } = await Verisoul.getSessionId();
await fetch('/api/risk/verisoul', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sessionId }),});アカウント変更時にリセット
セクション:アカウント変更時にリセット呼び出し reinitialize() ログアウト後に別のアカウントでログインしたときなどのユーザー コンテキストが変更された場合。
await Verisoul.reinitialize();Androidタッチイベント
タイトル:AndroidタッチイベントAndroidアプリで、タッチパターン収集が必要な場合、タッチイベントを前方に転送してください。
await Verisoul.recordTouchEvent({ x: 120, y: 240, action: 'down',});プラットフォーム設定
タイトル:プラットフォーム設定続けて「Getting Started」から進みます
Section titled “Getting Startedから続けて”あなたが使用している場合 はじめに Verisoul セッションを統合するために使用 @capgo/capacitor-verisoul @API/__CAPGO_KEEP_1__-verisoul iOS セットアップ iOS セットアップ App Attest の注釈 Android セットアップ @capgo/capacitor-verisoul Using @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-verisoul