【问题标题】:How to get information from google play app link?如何从 google play app 链接获取信息?
【发布时间】:2019-05-15 10:13:32
【问题描述】:

我用邀请 ID 将我的应用链接分享给我的朋友。

这是我在 Google Play 中应用的链接,带有我与朋友分享的邀请 ID

https://play.google.com/store/apps/details?id=com.manticsol.coucou.pk&inviteid=4352627

现在我的朋友使用我与他分享的链接安装应用程序。当我的朋友使用我的链接安装应用程序时,谁能告诉我如何在我的应用程序中以编程方式获取邀请 ID

我知道第一次从 Play 商店安装应用程序时会调用此 Intent,但我不知道如何获取邀请 ID

       <intent-filter>
            <action android:name="com.android.vending.INSTALL_REFERRER" />
        </intent-filter>

我从这个链接得到了一点帮助

Android - Is it possible to get install referrer programmatically

但是当我在我的应用程序中实现这个东西时。我在 logcat 中得到了这个响应

utm_source=(not%20set)&utm_medium=(not%20set)

【问题讨论】:

标签: java android google-play google-play-services


【解决方案1】:

你不能只使用你想要的任何旧字符串——在本例中为inviteid。 您必须使用 referrer 参数,然后您可以将其他子参数放入其中:

https://play.google.com/store/apps/details?id=com.foo.bar&referrer=utm_source%3Dmyreferrer%26utm_medium%3Demail%26utm_term%3Dshoes%26utm_content%3Dfoo%26utm_campaign%3Dcampaign

各种在线工具like this one 帮助您正确构建 URL。

【讨论】:

    猜你喜欢
    • 2021-11-19
    • 1970-01-01
    • 2012-12-30
    • 1970-01-01
    • 2016-03-22
    • 1970-01-01
    • 2012-06-22
    • 2015-08-13
    • 1970-01-01
    相关资源
    最近更新 更多