시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드가 포함된 설정 프롬프트를 복사하세요.
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-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-install-referrer` plugin in my project.수동 설정을 선호한다면, 다음 명령어를 실행하여 플러그인을 설치하고 아래의 플랫폼별 지침을 따르세요:
bun add @capgo/capacitor-install-referrerbunx cap sync가져오기
“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 가져오기” 섹션네이티브 code가 Apple의 attribution 엔드포인트를 호출하도록 하려면, 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 유효한 토큰을 위한 어트리뷰션 데이터가 준비되는 동안 발생할 수 있습니다. 재시도 옵션은 네이티브 플러그인이 거부하기 전까지 재시도하는 빈도를 제어합니다. 자세한 내용은 iOS 어트리뷰션 플랫폼별 상세 정보를 확인하세요.
호환성 별칭 (Compatibility Alias)
“Compatibility Alias” 섹션GetReferrer() 다음 앱의 마이그레이션 시 사용할 수 있습니다: cap-play-install-referrer.
const result = await InstallReferrer.GetReferrer();새로운 code은(는) 다음을 사용해야 합니다. getReferrer().
시작하기 다음 단계
“Getting Started에서 계속하기” 섹션사용 중이라면 시작하기 네이티브 플러그인 작업을 계획하려면, 이를 다음 항목과 연결하세요: @capgo/capacitor-install-referrer 사용하기 @capgo/capacitor-install-referrer 사용하기의 네이티브 기능은, Capgo 플러그인 디렉토리 Capgo Plugin Directory의 제품 워크플로우에 맞춰, Capgo의 Capacitor 플러그인 Capgo의 Capacitor 플러그인 구현 상세 내용에 대해서는, 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 상세 내용에 대해서는, Ionic Enterprise 플러그인 대안 Ionic Enterprise 플러그인 대안의 제품 워크플로우에 대해서는.