コンテンツにスキップ

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-appinsights` plugin in my project.

If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:

ターミナル画面
bun add @capgo/capacitor-appinsights
bunx cap sync
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

CapgoのAppInsightsをSDKで初期化

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.init({} as {
partnerId: string; // Provided by our business unit
partnerKey: string; // Provided by our business unit
});

__CAPGO_KEEP_0__のユーザIDを設定または更新します。

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });

SDKの現在の状態を取得します。

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();
export interface PanelSDKState {
initCompleted: boolean; // SDK initialization status
jobScheduled: boolean; // Background job scheduling status
permissionAcquired: boolean; // Required permissions status
}

このページはプラグインから生成されています。 src/definitions.ts. upstream の API が変更されたときに再度 sync を実行してください。

Getting Started から続けてください。

Getting Started から続けてください。

あなたが「Getting Started から続けてください。」を使用している場合 Getting Started ダッシュボードと API の操作を計画するために、を接続してください。 Using @capgo/capacitor-appinsights Using @capgo/capacitor-appinsights のネイティブ機能について API Overview API Overview の実装詳細について Introduction Introduction の実装詳細について API キー API キーと デバイス デバイスの実装詳細