@capgo/capacitor-앱인사이트 사용
앱 인사이트 플러그인에 대한 래퍼 https://github.com/apptopia/appinsights SDK.
설치
bun add @capgo/capacitor-appinsights
bunx cap sync
이 플러그인은 다음을 제공합니다.
init- AppInsights SDK을 초기화합니다.setUserId- 초기화 후 사용자 ID를 설정하거나 업데이트합니다.getState- AppInsights SDK의 현재 상태를 가져옵니다.
사용 예
init
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
AppInsights SDK의 현재 상태를 가져옵니다.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-appinsights/
- Docs: /docs/plugins/__CAPGO_KEEP_1__/
Keep going from Using @capgo/capacitor-appinsights
__CAPGO_KEEP_0__ Using @capgo/capacitor-appinsights __CAPGO_KEEP_0__ @capgo/capacitor-appinsights for the implementation detail in @capgo/capacitor-appinsights, Getting Started __CAPGO_KEEP_0__ Capgo Plugin Directory 제품 워크플로우를 위한 Capgo 플러그인 디렉토리에서 Capacitor 플러그인은 Capgo에서 제공합니다. 제품 워크플로우를 위한 Capacitor 플러그인 디렉토리, Capacitor 플러그인은 Capgo에서 제공하는 구현 세부 정보, 그리고 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 정보를 위한