Getting Started
App Store
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-appinsights`
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/appinsights/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.
Abschnitt mit dem Titel ‘Installieren’
Sie können unsere AI-gestützte Einrichtung verwenden, um das Plugin zu installieren. Fügen Sie die __CAPGO_KEEP_0__-Fähigkeiten zu Ihrem AI-Tool hinzu, indem Sie die folgende Befehlszeile verwenden:You can use our AI-Assisted Setup to install the plugin. Add the Capgo skills to your AI tool using the following command:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-pluginsIncludes install, sync, and the source markdown guide.
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-appinsights` plugin in my project.Wenn Sie eine manuelle Einrichtung bevorzugen, installieren Sie das Plugin, indem Sie die folgenden Befehle ausführen und die unten angegebenen Plattform-spezifischen Anweisungen befolgen:
bun add @capgo/capacitor-appinsightsbunx cap syncImportieren
Abschnitt mit dem Titel „Importieren“import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';API Übersicht
Abschnitt mit dem Titel „API Übersicht“Initialisieren Sie das 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 });setUserId
Abschnitt mit dem Titel “setUserId”Setzen oder aktualisieren Sie die Benutzer-ID nach der Initialisierung
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });Erhalten Sie den aktuellen Zustand des SDK
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();Typenverweis
Abschnitt mit dem Titel “Typenverweis”PanelSDKState
Abschnitt mit dem Titel “PanelSDKState”export interface PanelSDKState { initCompleted: boolean; // SDK initialization status jobScheduled: boolean; // Background job scheduling status permissionAcquired: boolean; // Required permissions status}Hauptquelle der Wahrheit
Abschnitt mit dem Titel “Hauptquelle der Wahrheit”Diese Seite wird aus dem Plugin generiert. src/definitions.ts. Wiederholen Sie die Synchronisierung, wenn die öffentliche API upstream geändert wird.
Weitergehen von Getting Started
Abschnitt mit dem Titel „Weitergehen von Getting Started“Wenn Sie "Getting Started" verwenden, um das Dashboard und die __CAPGO_KEEP_0__-Operationen zu planen, verbinden Sie es mit Getting Started Verwenden Sie @API/__CAPGO_KEEP_1__-appinsights für die native Fähigkeit in Verwenden Sie @capgo/capacitor-appinsights, for the native capability in Using @capgo/capacitor-appinsights, für die Implementierungsdetails in API-Übersicht, for the implementation detail in API Overview, Introduction für die Implementierungsdetails in Einführung API Schlüssel für die Implementierungsdetails in API Schlüssel und Geräte für die Implementierungsdetails in Geräten.