메인 콘텐츠로 건너뛰기

안내

Install Referrer 튜토리얼

장치에서 테스트

Capgo 앱을 다운로드하고 QR코드 code를 스캔하세요.

Install Referrer 플러그인 미리보기 QR code

Using @capgo/capacitor-install-referrer

@capgo/capacitor-install-referrer Android 앱에서 설치 인식 신호를 읽습니다. Capacitor

Android에서 Google Play Install Referrer 데이터 및 iOS에서 Apple AdServices 인식 토큰을 사용할 때 하나의 API를 사용하세요.

설치

bun add @capgo/capacitor-install-referrer
bunx cap sync

이 플러그인이 노출하는 것

  • getReferrer Android 또는 iOS에 대한 설치 인식 세부 정보를 반환합니다.
  • GetReferrer 이것은 Android에서 Play referrer 문자열, 클릭 시간, 설치 시간 및 즉시 앱 플래그를 반환하는 deprecated compatibility alias입니다. cap-play-install-referrer.
  • Android는 Play referrer 문자열, 클릭 시간, 설치 시간 및 즉시 앱 플래그를 반환합니다.
  • iOS는 AdServices 인식 토큰을 반환하고 옵션적으로 Apple의 인식 페이로드를 가져올 수 있습니다.

예시 사용

import { InstallReferrer } from '@capgo/capacitor-install-referrer';

const result = await InstallReferrer.getReferrer();

if (result.platform === 'android') {
  console.log(result.referrer);
}

if (result.platform === 'ios') {
  console.log(result.attributionToken);
}

Apple 인식 페이로드

const result = await InstallReferrer.getReferrer({
  fetchAppleAttribution: true,
  appleAttributionRetryCount: 3,
  appleAttributionRetryDelayMs: 5000,
});

console.log(result.appleAttribution);

플랫폼 참고 사항

안드로이드는 Google Play Install Referrer 서비스를 사용하고 실제 리퍼러 데이터를 얻기 위해 Play Store 설치가 필요합니다. iOS는 Apple AdServices를 사용합니다. 왜냐하면 Apple은 일반적인 App Store 설치 리퍼러 동등물을 제공하지 않기 때문입니다.

전체 참조

다음 단계로 진행하세요. @capgo/capacitor-install-referrer 사용

__CAPGO_KEEP_0__를 사용하여 capgo/capacitor-install-referrer __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-install-referrer capgo/capacitor-install-referrer capgo/capacitor-install-referrer 시작하기 시작하기 구현 세부 사항을 위해 Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로를 위해 Capacitor Capgo 플러그인 Capacitor Capgo 플러그인 구현 세부 사항을 위해, 그리고 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항을 위해