Getting Started
설치 단계와 이 플러그인에 대한 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-firebase-crashlytics`
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/firebase-crashlytics/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.
설치
설치 제목Capacitor 플러그인 설치를 위해 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-firebase-crashlytics` plugin in my project.만약 Manual Setup을 선호한다면, 다음 명령어를 실행하여 플러그인을 설치하고 아래의 플랫폼별 지침을 따르시오:
bun add @capgo/capacitor-firebase-crashlyticsbunx cap syncImport
__CAPGO_KEEP_0__ 개요import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';API
API를 복사합니다.crash
__CAPGO_KEEP_0____CAPGO_KEEP_0__를 사용하면 앱이 강제로 종료되며 구현을 테스트할 수 있습니다.
__CAPGO_KEEP_0__는 Android 및 iOS에서만 사용할 수 있습니다.
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.crash({} as CrashOptions);setCustomKey
__CAPGO_KEEP_0____CAPGO_KEEP_1__
__CAPGO_KEEP_2__
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.setCustomKey({} as SetCustomKeyOptions);setUserId
__CAPGO_KEEP_4____CAPGO_KEEP_5__
__CAPGO_KEEP_6__
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.setUserId({} as SetUserIdOptions);__CAPGO_KEEP_9__
__CAPGO_KEEP_10__
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.log({} as LogOptions);setEnabled
setEnabledsetEnabled
setEnabled
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.setEnabled({} as SetEnabledOptions);isEnabled
isEnabledisEnabled
isEnabled
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.isEnabled();didCrashOnPreviousExecution
didCrashOnPreviousExecutiondidCrashOnPreviousExecution
didCrashOnPreviousExecution
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.didCrashOnPreviousExecution();sendUnsentReports
sendUnsentReports시작할 때 Crashlytics로 bất 정상적인 보고서를 업로드합니다.
자동 데이터 수집이 활성화되면 Crashlytics는 시작할 때 자동으로 보고서를 업로드합니다.
Android 및 iOS에서만 사용 가능합니다.
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.sendUnsentReports();deleteUnsentReports
deleteUnsentReports기기에 저장된 bất 정상적인 보고서를 삭제합니다.
Android 및 iOS에서만 사용 가능합니다.
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.deleteUnsentReports();recordException
recordException기기에 저장된 비정상적인 보고서를 Crashlytics로 전송합니다.
Android 및 iOS에서만 사용 가능합니다.
import { FirebaseCrashlytics } from '@capgo/capacitor-firebase-crashlytics';
await FirebaseCrashlytics.recordException({} as RecordExceptionOptions);Type Reference
Type Reference 섹션CrashOptions
CrashOptions 섹션export interface CrashOptions { /** * @since 0.1.0 */ message: string;}SetCustomKeyOptions
SetCustomKeyOptions 섹션export type SetCustomKeyOptions = CustomKeyAndValue;SetUserIdOptions
SetUserIdOptions 섹션export interface SetUserIdOptions { /** * @since 0.1.0 */ userId: string;}LogOptions
LogOptions 섹션export interface LogOptions { /** * @since 0.1.0 */ message: string;}SetEnabledOptions
SetEnabledOptions 섹션export interface SetEnabledOptions { /** * @since 0.1.0 */ enabled: boolean;}IsEnabledResult
isEnabledResultexport interface IsEnabledResult { /** * @since 0.1.0 */ enabled: boolean;}DidCrashOnPreviousExecutionResult
이전 실행 시 오류가 발생한 결과export interface DidCrashOnPreviousExecutionResult { /** * @since 0.1.0 */ crashed: boolean;}RecordExceptionOptions
예외 기록 옵션export interface RecordExceptionOptions { /** * The message to record as a non-fatal exception. * * @since 0.1.0 */ message: string; /** * Error code within a specific error domain. * * **Attention:** This option is ignored on iOS if `stacktrace` is provided. * * Only available for iOS. * * @since 0.1.0 */ code?: number; /** * A string containing the error domain. * * **Attention:** This option is ignored on iOS if `stacktrace` is provided. * * Only available for iOS. * * @since 0.1.0 */ domain?: string; /** * An array of keys and the values to associate with the non fatal exception, * in addition to the app level custom keys. * * **Attention:** This option is ignored on iOS if `stacktrace` is provided. * * @since 7.1.0 */ keysAndValues?: CustomKeyAndValue[]; /** * A stacktrace generated by stacktrace.js. * * @since 1.1.0 */ stacktrace?: StackFrame[];}GetPluginVersionResult
플러그인 버전 가져오기 결과export interface GetPluginVersionResult { /** * The semantic version of this plugin. * * @since 8.0.2 */ version: string;}CustomKeyAndValue
사용자 정의 키와 값export interface CustomKeyAndValue { /** * @since 7.1.0 */ key: string; /** * @since 7.1.0 */ value: string | number | boolean; /** * @since 7.1.0 */ type: 'string' | 'long' | 'double' | 'boolean' | 'int' | 'float';}StackFrame
스택 프레임Stacktrace에 의해 생성된 부분
export interface StackFrame { lineNumber?: number; fileName?: string; functionName?: string;}진실의 근원
진실의 근원이 페이지는 플러그인의 src/definitions.ts공개된 API이 업스트림에서 변경될 때 다시 싱크를 실행하세요.
Getting Started에서 계속
Getting Started에서 계속Capgo를 사용 중이라면 Getting Started 대시보드 및 API를 계획하고 운영하기 위해 연결하세요. API 개요 API 구현 세부 정보에 대한 개요를 위해 소개 __CAPGO_KEEP_0__ 키에 대한 구현 세부 정보를 위해 API 키 API 키에 대한 구현 세부 정보를 위해 장치 __CAPGO_KEEP_0__ 구현 세부 정보에 대한 장치에 대해 배포 __CAPGO_KEEP_0__ 구현 세부 정보에 대한 배포에 대해