Lucky Dog

[안드로이드] Switch to the Play Referrer API by March 1, 2020 본문

안드로이드

[안드로이드] Switch to the Play Referrer API by March 1, 2020

Poohya 2019. 12. 12. 18:23

Switch to the Play Referrer API by March 1, 2020

기존에 사용하던 Referrer(INSTALL_REFERRER) 를 새로운 API 로 마이그레이션 하라는 것.

해당 기능 동작 안해도 앱 사용에는 지장이 없다. 그래도 가능하면 처리하도록 하자.

내 앱에서는 그런 기능 사용한 적 없는데?
=>직접 정의하지 않아도 마케팅 SDK 나 Fireabse 등에 해당 기능이 포함되어 있을 수 있다.

Referrer(INSTALL_REFERRER) 가 무엇인가?

간단하게 얘기하면 유입 경로를 분석/처리 하기 위한 기능으로,
직접 정의해서 사용하거나 마케팅 sdk, Firebase 등 에 해당 기능이 포함되어 있다.

예를들어 Firebase를 사용할 경우 앱 패키징(apk)을 디컴파일 해보면 AndroidManifest.xml 에 아래와 같이 INSTALL_REFERRER 가 선언되어 있는 것을 확인 할 수 있다.

<receiver
    android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
    android:permission="android.permission.INSTALL_PACKAGES"
    android:enabled="true"
    android:exported="true">
        <intent-filter>
            <action
            android:name="com.android.vending.INSTALL_REFERRER"/>
        </intent-filter>
</receiver>

앱이 설치되면 위 리시버가 이벤트를 수신하고, referrer 에 파라미터를(key, value) 전달하여 해당 파라미터에 따라 정보를 저장하거나 전송하는 등의 처리를 할 수도 있다. 홍보 링크를 뿌리는데 각 사이트별로 referrer 다르게 하여 어디서 제일 많이 들어오는지 확인한다던가 유입경로별로 또 다른 처리를 한다던가...

Ex) https://play.google.com/store/apps/details?id=your.package.name?referrer=key=value&key=value&key=value


마이그레이션 가이드 :
https://developer.android.com/google/play/installreferrer/library.html


구글 마이그레이션 안내 메시지

Hello Google Play Developer,
We recently announced that we’ll be deprecating the install_referrer intent broadcast mechanism. Because one or more of your apps uses this intent to track referrals, we wanted to ensure you make the switch before March 1, 2020. After this date, new versions of the Play Store app will no longer broadcast the install_referrer intent after app installs.
Action required
Migrate to the Play Install Referrer API to track your app installs for the following apps and/or games.
Affected apps
com.xxx.xxx.xxx
The Play Install Referrer API offers better performance, uses a secure communication channel between your app and the Play Store, and offers a more robust solution against spoof and attribution fraud.
We know this change may require some additional work on your part and appreciate your understanding.
Thank you for being a part of Google Play.

Comments