我将使用Referrer Library
我读过很多文章,但没有一篇告诉你如何创建链接
例如,我有代码"KSK23DG“,链接应该是什么样子才能在我的应用程序中得到它?
https://play.google.com/store/apps/details?id=<apppid>...
val response: ReferrerDetails = referrerClient.installReferrer
val referrerUrl: String = response.installReferrer
val referrerClickTime: Long = response.referrerClickTimestampSeconds
val appInstallTime: Long = response.installBeginTimestampSeconds
val instantExperienceLaunched: Boolean = response.googlePlayInstantParam发布于 2021-02-15 18:21:25
查看我的答案here。
将数据传递到Google Play商店
您可以使用referrer URL查询参数传入引用数据:
您的一个链接可能如下所示(将com.example.myapp替换为您的真实应用程序ID):
https://play.google.com/store/apps/details?id=com.example.myapp&referrer=someid%3Dsomedata
此URL由以下部分组成:
谷歌Play商店上应用程序的商店页面的
https://play.google.com/store/apps/details?id=com.example.myappreferrer URL参数:&referrer=someid作为键,使用somedata作为值(注意,%3D是对=进行编码HTML URL ):测试
为了测试这一点,你需要将你的应用上传到Play Store的内部、alpha、beta或生产轨道中。据我所知,这不适用于internal app sharing。
https://stackoverflow.com/questions/66205959
复制相似问题