App Tracking Transparency __CAPGO_KEEP_0__ repository
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설치 명령어를 복사할 수 있습니다.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-app-tracking-transparency`
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/app-tracking-transparency/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-app-tracking-transparency` plugin in my project.만약 Manual Setup을 선호한다면, 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:
bun add @capgo/capacitor-app-tracking-transparencybunx cap syncImport
__CAPGO_KEEP_0__ 개요import { AppTrackingTransparency } from '@capgo/capacitor-app-tracking-transparency';API Overview
Section titled “API Overview”getStatus
getStatus사용자의 현재 추적 허가 상태를 가져옵니다. 사용자에게 알림을 표시하지 않습니다.
import { AppTrackingTransparency } from '@capgo/capacitor-app-tracking-transparency';
const { status } = await AppTrackingTransparency.getStatus();if (status === 'authorized') { console.log('Tracking is authorized');}requestPermission
requestPermission앱 관련 데이터에 대한 추적을 위해 사용자 허가를 요청합니다. iOS의 원시 추적 허가 대화 상자를 표시합니다.
주의: 이 메서드는 대화 상자를 한번만 표시합니다. 이후 호출은 대화 상자를 표시하지 않고 저장된 허가 상태를 반환합니다.
import { AppTrackingTransparency } from '@capgo/capacitor-app-tracking-transparency';
const { status } = await AppTrackingTransparency.requestPermission();switch (status) { case 'authorized': console.log('User authorized tracking'); break; case 'denied': console.log('User denied tracking'); break; case 'restricted': console.log('Tracking is restricted'); break; case 'notDetermined': console.log('Status not determined'); break;}AppTrackingStatusResponse
추적 허가 상태를 포함하는 응답 객체입니다.클립보드에 복사
export interface AppTrackingStatusResponse { /** * The current tracking authorization status. * * @since 1.0.0 */ status: AppTrackingStatus;}AppTrackingStatus
AppTrackingStatus추적 허가 상태의 가능한 값입니다.
export type AppTrackingStatus = 'authorized' | 'denied' | 'notDetermined' | 'restricted';실질적 진실
실질적 진실이 페이지는 플러그인의 src/definitions.ts공개 API이 업스트림에서 변경될 때 다시 싱크를 실행하세요.
Getting Started
Getting StartedGetting Started Getting Started to plan dashboard and API operations, connect it with Using @capgo/capacitor-app-tracking-transparency for the native capability in Using @capgo/capacitor-app-tracking-transparency, API 개요 API 개요 소개 소개 API 키 API 키 기기 기기