개요
개요 섹션@capgo/capacitor-install-referrer Capacitor과 API을 통해 설치 인식 신호를 노출합니다.
안드로이드에서 Google Play Install Referrer 세부 정보를 읽습니다: raw referrer 문자열, 클릭 시간 스탬프, 설치 시간 스탬프 및 즉시 앱 플래그. iOS에서 Apple AdServices 인식 토큰을 반환하고 Apple의 AdServices 인식 엔드포인트를 호출하여 Apple Search Ads 인식 데이터를 옵션으로 검색할 수 있습니다.
핵심 기능
핵심 기능 섹션getReferrer- 현재 플랫폼의 네이티브 설치 인식 세부 정보를 반환합니다.GetReferrer- deprecated compatibility alias는 앱이 Cloudflare에서 Capgo로 마이그레이션하는 동안 사용됩니다.cap-play-install-referrer.getPluginVersion- 네이티브 플러그인 구현 버전 마커를 반환합니다.- - iOS에서 Apple 인식 조회를 옵션으로 사용할 수 있습니다. AdServices 응답이 지연될 경우 재시도 지원이 가능합니다.
플랫폼 지원
플랫폼 지원 섹션| 플랫폼 | 지원 |
|---|---|
| 안드로이드 | Google Play 설치 참조 API |
| iOS | Apple AdServices Attribution 토큰 및 선택적 Apple Attribution 페이로드 |
| 웹 | 지원되지 않는 스텁 |
공개 API
API 공개 섹션| 메서드 | 설명 |
|---|---|
getReferrer(options?) | Android 또는 iOS 에서 설치ATTRIBUTION 세부 정보를 반환합니다. |
GetReferrer(options?) | deprecated compatibility alias for getReferrer. |
getPluginVersion() | native 플러그인 버전 마커를 반환합니다. |
진실의 근원
Source Of Truth이 참조는 src/definitions.ts 에서 capacitor-install-referrer.