@capgo/capacitor-appinsights를 사용하여
AppInsights __CAPGO_KEEP_0__을 위한 wrapper입니다. https://github.com/apptopia/appinsights SDK.
설치
bun add @capgo/capacitor-appinsights
bunx cap sync
이 플러그인이 제공하는 것
init- AppInsights SDK 초기화setUserId- 초기화 후 사용자 ID 설정 또는 업데이트getState- 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에서 계속 진행하세요.
__CAPGO_KEEP_0__을 사용 중이라면 Using @capgo/capacitor-appinsights Capgo 플러그인 개발을 위해 Native 플러그인 작업을 계획하려면 @capgo/capacitor-appinsights Capgo 플러그인 개발에 대한 구현 세부 정보는 @capgo/capacitor-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 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트에 대한 구현 세부 정보는