Capgo Live Update의 문서 보기
Capgo AppInsights의 저장소 보기
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
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
현재 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에서 계속 진행하세요.
이 플러그인을 사용하고 있다면 Using @capgo/capacitor-appinsights 자연 플러그인 작업을 계획하는 경우 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsights와 연결하세요. Using @capgo/capacitor-appinsights for the implementation detail in @capgo/capacitor-appinsights, 시작하기 Capacitor-__CAPGO_KEEP_0__-appinsights 구현 세부 사항에 대해 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 Capacitor-__CAPGO_KEEP_0__ 플러그인 구현 세부 사항, 그리고 플러그인 추가 또는 업데이트