Android Google Play intent referrer

被刻印的时光 ゝ 提交于 2019-12-05 05:30:35

Adding referrer data to Google Play links works the same for in-app links as it does for the web:

You can add referrer data via a referrer parameter in your market URI, i.e.:

market://details?id=com.example&referrer=utm_source%3Dmyapp%26utm_medium%3Dcross-sell

If the user chooses to then install the app to which you linked, the Google Play app should pass the value of that referrer parameter, if present, as a string extra in the com.android.vending.INSTALL_REFERRER intent during the install.

Note that referrer data is not passed for remote installs initiated from the Google Play Store website.

Please Check have You Mentioned this Receiver in your Manifest file..If it is there You will be get the same. Otherwise,Please add into Manifest file

<receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true">
  <intent-filter>
    <action android:name="com.android.vending.INSTALL_REFERRER" />
  </intent-filter>
</receiver>

It should be work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!