Skip to main content
플러그인으로 돌아가기
@capgo/capacitor-appinsights
튜토리얼
@capgo/capacitor-appinsights

AppInsights

Apptopia AppInsights를 사용하여 앱 사용량, 성능 지표 및 사용자 행동을 추적하세요.

Guide

AppInsights 튜토리얼

장치에서 테스트

다운로드한 Capgo 앱을 열고 QR코드 code를 스캔하세요.

AppInsights 플러그인 미리보기 QR code

@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();

전체 참조

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 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트에 대한 구현 세부 정보는