디바이스에서 테스트
앱 인사이트 앱을 다운로드하고 QR 코드를 스캔하세요.
AppInsights 플러그인을 사용하는 @capgo/capacitor-appinsights
AppInsights 플러그인의 wrapper https://github.com/apptopia/appinsights SDK.
설치
bun add @capgo/capacitor-appinsights
bunx cap sync
이 플러그인이 노출하는 내용
init- AppInsights SDK 초기화setUserId- 초기화 후 사용자 ID 설정 또는 업데이트getState- AppInsights SDK의 현재 상태 가져오기
예제 사용법
init
Initialize the 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
사용자 ID를 설정하거나 초기화 후 업데이트
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });
getState
Get the current state of the SDK.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-appinsights/
- 문서: /docs/plugins/appinsights/
Keep going from Using @capgo/capacitor-appinsights
Capacitor AppInsights를 사용 중이라면 Using @capgo/capacitor-appinsights Capacitor AppInsights와 연결 @capgo/capacitor-appinsights Capacitor-AppInsights 구현 세부 정보를 위해 @capgo/capacitor-appinsights, 시작하기 Capacitor 구현 세부 정보를 위해 Getting Started, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and 플러그인을 추가하거나 업데이트 플러그인 구현 세부 정보를 위해 플러그인을 추가하거나 업데이트.