Richtlinie
Tutorial zu AppInsights
Mit @capgo/capacitor-appinsights
Ein Wrapper um den https://github.com/apptopia/appinsights SDK.
Installieren
bun add @capgo/capacitor-appinsights
bunx cap sync
Was diese Plugin-Exposé bietet
init- Initialisieren Sie die AppInsights SDK.setUserId- Setzen oder aktualisieren Sie die Benutzer-ID nach der Initialisierung.getState- Holen Sie sich den aktuellen Zustand der SDK.
Beispielhafte 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/
Bleiben Sie bei der Verwendung von @capgo/capacitor-appinsights
Wenn Sie native Plugin-Arbeit planen, verbinden Sie es mit Verwenden Sie @capgo/capacitor-appinsights um native Plugin-Arbeit 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 Hinzufügen oder Aktualisieren von Plugins für die Implementierungsdetails in Hinzufügen oder Aktualisieren von Plugins