본문으로 건너뛰기
@capgo/capacitor-appinsights 분석 오픈 소스

AppInsights Capacitor 플러그인

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

설치

bun add @capgo/capacitor-appinsights bunx cap sync
npm, pnpm 또는 yarn
  • npm install @capgo/capacitor-appinsights
  • pnpm add @capgo/capacitor-appinsights
  • yarn add @capgo/capacitor-appinsights

가이드

How to use AppInsights in Capacitor

@capgo/capacitor-appinsights를 사용합니다.

AppInsights의 wrapper입니다. https://github.com/apptopia/appinsights SDK.

설치

bun add @capgo/capacitor-appinsights
bunx cap sync

bunx cap sync 플러그인의 네이티브 code을 프로젝트에 복사합니다. 플러그인 업그레이드 후 다시 실행하세요.

import

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

API를 한눈에

방법 설명
init AppInsights SDK을 초기화합니다.
setUserId 초기화 후 사용자 ID를 설정하거나 업데이트하세요.
getState SDK의 현재 상태를 가져오세요.

예시

init()

AppInsights SDK을 초기화하세요.

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.init({
  partnerId: 'partner-id-123',
  partnerKey: 'partner-key-123',
});

setUserId()

초기화 후 사용자 ID를 설정하거나 업데이트하세요.

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.setUserId({ userId: 'user-id-123' });

getState()

SDK의 현재 상태를 가져오세요.

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

const result = await CapacitorAppInsights.getState();
console.log(result);

전체 참조

Using @capgo/capacitor-appinsights에서 계속하세요.

Capgo를 사용 중이라면 @capgo/capacitor-앱인사이트 Capacitor-앱인사이트스 @capgo/capacitor-appinsights @capgo/capacitor-appinsights Getting Started Capacitor 플러그인 디렉토리 Capgo 플러그인 디렉토리 Capgo 제품 워크플로우에 대한 플러그인 디렉토리에서 Capacitor Plugins by Capgo Capacitor 플러그인에 대한 구현 세부 사항은 Capgo에 의해 제공됩니다. Capacitor 플러그인 추가 또는 업데이트 Capacitor 플러그인 추가 또는 업데이트

FAQ

AppInsights 플러그인 FAQ

AppInsights 플러그인을 Capacitor 앱에 설치하는 방법은?

Run "bun" "capgo add @capacitor/npm-appinsights" (or "capgo install @capacitor/code-appinsights"), then run "bunx cap sync" so the iOS and Android projects pick up the native capgo. Import it from "@capacitor/code-appinsights" in your app __CAPGO_KEEP_10__.

@capgo/capacitor-appinsights은 React, Vue 및 Angular과 함께 작동합니까?

네. AppInsights는 Capacitor 패키지이므로 Ionic, React, Vue, Angular, Svelte 및 일반 JavaScript와 같은 모든 웹 프레임워크가 Capacitor 내부에서 작동합니다.

어떤 Capacitor 버전이 @capgo/capacitor-appinsights을 지원합니까?

Capgo plugins follow Capacitor's major version: use the plugin major version that matches your Capacitor major version (for example plugin v8 with Capacitor 8). The compatibility table in the GitHub README lists the maintained versions.

@capgo/capacitor-appinsights은 무료이며 오픈 소스인가요?

Yes. The source code is public on GitHub at https://github.com/Cap-go/capacitor-appinsights/ and the package is free to install from npm. Bug reports and pull requests are welcome.

code를 사용하는 AppInsights를 업데이트할 수 있나요?

code를 업데이트하거나 플러그인을 업그레이드하면 네이티브 code이 변경되므로 새로운 스토어 빌드를 필요로 합니다. 그 후에 JavaScript, HTML 및 CSS 변경 사항이 플러그인을 호출하는 경우 Capgo Live Update를 통해 즉시 배포할 수 있습니다.

앱 인사이트 변경 사항을 앱 리뷰 기다리지 않고 배포합니다.

플러그인을 스토어 빌드에 추가한 후 Capgo 라이브 업데이트가 사용자에게 몇 분 만에 자바스크립트, HTML 및 CSS 변경 사항을 푸시합니다.

시작하세요 Capgo