본문으로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-install-referrer
튜토리얼
@capgo/capacitor-install-referrer

Install Referrer

Google Play 설치 참조 데이터 및 Apple AdServices Attribution을 읽어 Capacitor에서

Guide

설치 참조자에 대한 튜토리얼

@capgo/capacitor-install-referrer를 사용하여

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

Google Play 설치 참조자 데이터와 iOS의 Apple AdServices Attribution 토큰을 Android 및 iOS에서 하나의 API를 통해 사용하세요.

설치

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

이 플러그인은 무엇을 제공합니까?

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

Example Usage

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 Attribution Payload

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

console.log(result.appleAttribution);

Platform Notes

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

Full Reference

capgo-install-referrer를 사용하여 @capgo/capacitor-install-referrer에서 계속 진행하세요.

__CAPGO_KEEP_0__를 사용하는 경우 capgo/capacitor-install-referrer를 사용하여 __CAPGO_KEEP_0__를 사용하여 native plugin 작업을 계획하고 연결하세요. @capgo/capacitor-install-referrer implementation 방법에 대한 자세한 내용은 @capgo/capacitor-install-referrer에서 확인하실 수 있습니다. Getting Started Getting Started의 implementation 방법에 대한 자세한 내용은 Capgo Plugin Directory Capgo Plugin Directory의 제품 워크플로에 대한 자세한 내용은 Capacitor Plugins by Capgo implementation 방법에 대한 자세한 내용은 Capacitor Plugins by Capgo에서 확인하실 수 있습니다. Adding or Updating Plugins Adding or Updating Plugins의 implementation 방법에 대한 자세한 내용은