Verwendung von @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-Exposen enthält
init- Initialisieren Sie den AppInsights SDK.setUserId- Setzen oder aktualisieren Sie die Benutzer-ID nach der Initialisierung.getState- Holen Sie sich den aktuellen Zustand des SDK.
Beispielhafte Verwendung
init
Initialisiere 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
Setze oder aktualisiere die Benutzer-ID nach der Initialisierung.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });
getState
Ermittle 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/
Fahre mit der Verwendung von @capgo/capacitor-appinsights fort.
Wenn du die Verwendung von @capgo/capacitor-appinsights zum Planen von native Plug-in-Arbeiten verwendest, verbinde sie 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 Plugins hinzufügen oder aktualisieren für die Implementierungsdetails in Plugins hinzufügen oder aktualisieren.