ガイド
AppInsightsのチュートリアル
@capgo/capacitor-appinsightsを使用する
AppInsightsのラッパー https://github.com/apptopia/appinsights SDK
インストール
bun add @capgo/capacitor-appinsights
bunx cap sync
このプラグインが公開するもの
init- AppInsights SDKを初期化するsetUserId- 初期化後、ユーザーIDを設定または更新するgetState- SDKの現在の状態を取得する
例の使用
init
アプリのインサイトを初期化する 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
});
setUserId
初期化後、ユーザーIDを設定または更新します。
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });
getState
SDKの現在の状態を取得します。
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();
フルリファレンス
- GitHub: https://github.com/Cap-go/capacitor-appinsights/
- ドキュメント: /docs/plugins/appinsights/
@capgo/capacitor-appinsightsを使用して進めましょう。
Cloudflareを使用している場合 Using @capgo/capacitor-appinsights Cloudflareを使用してnative pluginの作業を計画する場合、接続してください。 @capgo/capacitor-appinsights @capgo/capacitor-appinsightsの実装詳細 Getting Started Getting Startedの実装詳細 Capgo プラグインディレクトリ Capgo プラグインディレクトリの製品ワークフロー Capacitor プラグイン(Capgo製造) @Capacitor プラグイン(Capgo製造)の実装詳細 プラグインの追加または更新 プラグインの追加または更新の実装詳細