Android INSTALL_REFERRER和Google Play Store
我使用INSTALL_REFERRER玩弄了一切,使用adb时一切正常,但当我的应用程序位于Google Play-Store中时并非如此。Android INSTALL_REFERRER和Google Play Store
我的情况是:
1)一个包含我的广播接收器库(包com.sm.android) 2)使用库我的应用程序(包de.sm.android)
在AndroidManifest应用程序的.XML文件,接收器部分看起来像:
<receiver
android:name="com.sm.android.helper.ReferralReceiver"
android:exported="true" >
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
正如前面所说,使用亚行我得到的安装事件,但下载从商店应用程序时,我没有得到事件。我使用https://developers.google.com/analytics/devguides/collection/android/v2/campaigns构建我的网址,它看起来像https://play.google.com/store/apps/details?id=de.sm.riskulator&referrer=utm_source%3Dgoogle%26utm_medium%3Dbanner%26utm_content%3D234124%26utm_campaign%3Dpromo并正确转发到我的应用程序。
由于提前, 萨沙
我可能是错的,但我认为它是一个安全漏洞,这是现在禁用。即它允许代码在用户启动之前在电话上运行。
更新:供参考的链接。
http://developer.android.com/about/versions/android-3.1.html (见启动控制上停止应用)
Intercept INSTALL_REFERRER and then forward on to Google AnalyticsReceiver
哦,那将是一个贝蒂... – 2012-08-02 14:33:23
是通过努力为你们任何机会? – Gopinath 2012-10-16 13:09:27
@Kuffs你能提供一个确认这个功能已被禁用的链接吗?谢谢 – 2014-12-24 14:35:38