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-install-referrer`
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/install-referrer/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 도구에 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-install-referrer` plugin in my project.만약 Manual Setup을 선호한다면, 다음 명령어를 실행하여 플랫폼에 따라 아래의 지침을 따르세요:
bun add @capgo/capacitor-install-referrerbunx cap syncImport
Import라는 제목의 섹션import { InstallReferrer } from '@capgo/capacitor-install-referrer';Attribution 정보 읽기
Attribution 정보 읽기라는 제목의 섹션const result = await InstallReferrer.getReferrer();
if (result.platform === 'android') { console.log('Install referrer:', result.referrer); console.log('Click timestamp:', result.clickTimestampSeconds); console.log('Install timestamp:', result.installBeginTimestampSeconds);}
if (result.platform === 'ios') { console.log('AdServices token:', result.attributionToken);}iOS에서 Apple Attribution 가져오기
iOS 속성 추적을 위한 Apple Attribution을 가져오기native code이 Apple의 속성 추적 엔드포인트를 호출하고 싶다면, fetchAppleAttribution.
const result = await InstallReferrer.getReferrer({ fetchAppleAttribution: true, appleAttributionRetryCount: 3, appleAttributionRetryDelayMs: 5000,});
// result.appleAttribution is the parsed Apple attribution response.// See the iOS attribution page for the Apple-provided payload fields.console.log(result.appleAttribution);Apple은 404 유효한 토큰을 위해 속성 추적 데이터를 준비하는 동안 속성 추적 데이터가 준비되지 않은 경우 native 플러그인이 다시 시도할 횟수를 제어합니다. 자세한 내용은 iOS 속성 추적
을 참조하세요.
Compatiblity AliasGetReferrer() Compatiblity Alias cap-play-install-referrer.
const result = await InstallReferrer.GetReferrer();New code should use getReferrer().
Getting Started에서 계속 진행하세요
Getting Started에서 계속 진행하는 섹션native plugin 작업을 계획하고 있으시다면 Getting Started native plugin 작업을 계획하고 있으시다면 Using @capgo/capacitor-install-referrer Using @capgo/capacitor-install-referrer native 기능을 위한 Using @Capgo/__CAPGO_KEEP_1__-install-referrer에 대해 Capgo Plugin Directory Capacitor Plugins by Capgo Capacitor Plugins by Capgo __CAPGO_KEEP_0__ Plugins by __CAPGO_KEEP_1__의 구현 세부 사항에 대해 __CAPGO_KEEP_0__ 구현 세부 사항에 대한 정보는 Adding or Updating Plugins 항목에서 찾을 수 있습니다. Ionic Enterprise Plugin Alternatives __CAPGO_KEEP_0__ 제품 워크플로우는 Ionic Enterprise Plugin Alternatives 항목에서 찾을 수 있습니다.