시작하기
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사할 수 있어요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-appinsights`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/appinsights/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
설치란 제목AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 기능을 추가하려면 다음 명령어를 사용하세요:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins그런 다음 다음 프롬프트를 사용하세요:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-appinsights` plugin in my project.만약 Manual Setup을 선호한다면, 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요.
bun add @capgo/capacitor-appinsightsbunx cap syncImport
Import 섹션import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';API 개요
API 개요 섹션init
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
Section titled “사용자 ID 설정”초기화 후 사용자 ID 설정 또는 업데이트
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });getState
Section titled “현재 상태 가져오기”SDK의 현재 상태 가져오기
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();PanelSDKState
Section titled “패널 SDK 상태”export interface PanelSDKState { initCompleted: boolean; // SDK initialization status jobScheduled: boolean; // Background job scheduling status permissionAcquired: boolean; // Required permissions status}진실의 근원
Section titled “진실의 근원”이 페이지는 플러그인의 src/definitions.ts. 업스트림의 API이 변경되었을 때 다시 싱크를 실행하세요.
Getting Started에서 계속하기
Getting Started에서 계속하기라는 제목Getting Started을 사용하여 Getting Started 계획 대시보드 및 API 운영을 위해 연결하세요. Using @capgo/capacitor-appinsights Using @capgo/capacitor-appinsights를 사용하는 데 native capability API Overview API Overview의 구현 세부 정보 Introduction implementation 세부 정보를 위한 Introduction API 키 implementation 세부 정보를 위한 API 키, 그리고 장치 implementation 세부 정보를 위한 장치.