Using @capgo/capacitor-appinsights
앱 인사이트 플러그인 https://github.com/apptopia/appinsights SDK
설치
bun add @capgo/capacitor-appinsights
bunx cap sync
이 플러그인은 다음을 제공합니다.
init- 앱 인사이트 SDK 초기화setUserId- 초기화 후 사용자 ID 설정 또는 업데이트getState- 현재 SDK 상태 가져오기
예시 사용법
init
애플리케이션 인사이트 초기화 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
SDK의 현재 상태를 가져오세요.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-appinsights/
- 문서: /docs/plugins/appinsights/
Using @capgo/capacitor-appinsights로 계속 진행하세요.
이미 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsights를 사용 중이라면 @capgo/capacitor-appinsights를 사용하여 자연 플러그인 작업을 계획하고자 할 때, @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsights와 연결하세요. @capgo/capacitor-appinsights를 사용하세요. @capgo/capacitor-appinsights 구현 세부 사항에 대해 Getting Started @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsights 구현 세부 사항에 대해 Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로에 대해 Capacitor 플러그인들에 대해 Capgo Capacitor 플러그인들에 대해 Capgo 구현 세부 사항에 대해, 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항에 대해