简体   繁体   English

如何从Google Play应用链接获取信息?

[英]How to get information from google play app link?

I share my app link to my friend with invitation id. 我将我的应用程序链接共享给具有邀请ID的朋友。

This is the link of my app in google play with invitation id that i shared with my friend 这是我在Google Play中与我的朋友共享的邀请ID的应用程序的链接

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

Now my friend install the app using my link that i shared with him. 现在,我的朋友使用我与他共享的链接安装了该应用程序。 Can anyone tell me how can i get the invitation id programmatically in my app when my friend will install app using my link 谁能告诉我当朋友使用我的链接安装应用程序时如何在应用程序中以编程方式获取邀请ID

I know that this intent is called when app installed first time from play store but i don't know how can i able to get the inviteId 我知道第一次从Play商店安装应用程序时会调用此意图,但我不知道如何才能获得InvitationId

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

I got a little bit help from this link 我从此链接获得了一些帮助

Android - Is it possible to get install referrer programmatically Android-是否可以通过编程方式获取安装引荐来源网址

But when i implemented this thing in my app. 但是,当我在我的应用程序中实现此功能时。 i am getting this response in logcat 我在logcat中收到此响应

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

You can't just use any old string you want - in this case inviteid . 您不能只使用所需的任何旧字符串-在这种情况下为inviteid You have to use a referrer argument, then you can put other sub arguments inside it like this: 您必须使用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 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

Various online tools like this one help you build the URL correctly. 像这样的各种在线工具可帮助您正确构建URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从Google Play获取订阅信息 Android 开发者 API - Unable to get the subscription information from Google Play Android Developer API 使用JSoup从Google Play商店获取应用名称 - Using JSoup to get app names from Google Play Store 如何知道是否通过Facebook促销或Google Play安装了应用程序? - How to know whether app is installed from Facebook promotion or Google play? 如何知道应用是否已从Google Play或亚马逊下载? - How to know if an app has been downloaded from Google Play or Amazon? 从imdb链接获取电影信息 - Get movie information from imdb link 如何从Java,Android上的Google日历获取有关事件的信息? - How to get information about events from Google calendar on Java, Android? 如何从 Google Cloud 计费 api 获取计费信息 - How to get billing information from Google Cloud billing api 如何从Google Play游戏服务的排行榜获得排名? - How to get rank from Google Play game service's leaderboard? 如何从Google Play控制台获取IAP SKU代码? - How to get IAP SKU code from google play console? 我想从应用商店和谷歌播放(以编程方式)获取我的应用的安装计数,是否有官方 api - I want to get count of installations for my app from app store and google play (programmatically), is there an official api
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM