내용으로 건너뛰기

안드로이드 리퍼러

GitHub

구글 플레이 설치 참조자

구글 플레이 설치 참조자

안드로이드에서 getReferrer() 구글 플레이 설치 참조자 서비스와 연결하여 플레이 스토어 설치 기록에서 데이터를 반환합니다.

const result = await InstallReferrer.getReferrer();
console.log(result.referrer);
console.log(result.clickTimestampSeconds);
console.log(result.installBeginTimestampSeconds);
console.log(result.googlePlayInstantParam);
Field설명
platform항상 android.
referrer원본 Play 설치 참조자 문자열.
clickTimestampSeconds클라이언트 측 참조 클릭 시간(초).
installBeginTimestampSeconds클라이언트 측 설치 시작 시간(초).
googlePlayInstantParam사용자가 앱의 즉시 경험을 시작했는지 여부.
  • Google Play에서 앱을 설치해야만 실제 설치 참조 데이터를 얻을 수 있습니다.
  • 설치 참조 서비스를 지원하는 Play Store 버전이 장치에 설치되어 있어야 합니다.
  • Android 런타임 권한이 필요하지 않습니다.

오류 사례

“오류 사례”

Play Store 서비스가 사용할 수 없거나 지원되지 않거나 결과를 반환하기 전에 연결이 끊어졌거나 예상치 못한 응답을 반환할 때 플러그인은 거부합니다.

Android Referrer에서 계속하기

“Android Referrer에서 계속하기”

이러한 경우 Android Referrer 자연 플러그인 작업을 계획하기 위해 native plugin을 사용하고 있습니다. @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-install-referrer을 연결하세요. Using @capgo/capacitor-install-referrer Capgo의 Native 기능을 사용하는 @capgo/capacitor-install-referrer에 대해 Capgo 플러그인 디렉토리 Capgo의 제품 워크플로우에 대해 Capgo 플러그인 디렉토리 Capacitor 플러그인들 - Capgo Capgo의 플러그인 구현에 대해 Capacitor 플러그인들 - Capgo 플러그인 추가 또는 업데이트 플러그인 구현에 대해 플러그인 추가 또는 업데이트, 그리고 Capgo Enterprise 플러그인 대체 Capgo의 제품 워크플로우에 대해 Capgo Enterprise 플러그인 대체.