[英]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.