Richtlinie
Tutorial zu AppInsights
Mit @capgo/capacitor-appinsights arbeiten
Ein Wrapper um die https://github.com/apptopia/appinsights SDK.
Installieren
bun add @capgo/capacitor-appinsights
bunx cap sync
Was diese Erweiterung bereitstellt
init- Initialisieren Sie die AppInsights SDK.setUserId- Setzen oder aktualisieren Sie die Benutzer-ID nach der Initialisierung.getState- Ermitteln Sie den aktuellen Zustand der SDK.
Beispiel für die Verwendung
init
Initialisieren Sie die 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
Setzen oder aktualisieren Sie die Benutzer-ID nach der Initialisierung.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });
getState
Ermitteln Sie den aktuellen Zustand der SDK.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();
Vollständige Referenz
- GitHub: https://github.com/Cap-go/capacitor-appinsights/
- Dokumentation: /docs/plugins/appinsights/
Weitermachen Sie mit der Verwendung von @capgo/capacitor-appinsights
Wenn Sie die Verwendung von Die Verwendung von @capgo/capacitor-appinsights um native Plugin-Arbeiten zu planen, verbinden Sie es mit @capgo/capacitor-appinsights für die Implementierungsdetails in @capgo/capacitor-appinsights, Einstieg für die Implementierungsdetails in Einstieg, Capgo Plugin-Verzeichnis für den Produktworkflow in Capgo Plugin-Verzeichnis Capacitor Plugins von Capgo für die Implementierungsdetails in Capacitor Plugins von Capgo, und Hinzufügen oder Aktualisieren von Plugins für die Implementierungsdetails in Hinzufügen oder Aktualisieren von Plugins.