In my application, I implemented a Broadcast Receiver that catches com.android.vending.INSTALL_REFERRER
intents launched by Android after an app is installed from the Market.
在我的应用程序中,我实现了一个广播接收器,它可以捕获com. android.售货机。安装应用程序从市场上安装后,Android就发布了INSTALL_REFERRER。
I am following the details here: http://code.google.com/mobile/analytics/docs/android/#referrals
下面是一些细节:http://code.google.com/mobile/analytics/docs/android/#referrals
Does this referrer catch updates too? In other words, can the user open the Google Play store with the referrer and update application?
这个推荐者是否也有更新?换句话说,用户可以通过引用和更新应用程序打开谷歌Play商店吗?
1 个解决方案
#1
8
No, Google Play Store doesn't send com.android.vending.INSTALL_REFERRER
intent when the app is already installed.
不,谷歌Play商店不会发送com.android.售货机。当应用程序已经安装时,INSTALL_REFERRER将意图。
If your app's package name is com.example.android
your URL will be something like this.
如果应用程序的包名是com.example。你的URL会是这样的。
https://play.google.com/store/apps/details?id=com.example.android&referrer=testReferrer
When you open the URL while the app isn't installed you can see in the logcat this debug log from Play Store:
当你在app未安装时打开URL,你可以在logcat中看到这个来自Play Store的调试日志:
1857-1857/com.android.vending D/Finsky﹕ [1] 1.run: Capture referrer for com.example.android
1857 - 1857 / com.android。运行:为com.example.android捕获推荐者
When you open the same URL while the app is already installed you can see this log instead:
当你在app已经安装时打开相同的URL,你可以看到这个日志:
1857-1857/com.android.vending D/Finsky﹕ [1] 1.run: Dropped referrer for com.example.android because already-installed
1857 - 1857 / com.android。自动贩卖机1.run: drop referrer for com.示例。android已经安装,因为
#1
8
No, Google Play Store doesn't send com.android.vending.INSTALL_REFERRER
intent when the app is already installed.
不,谷歌Play商店不会发送com.android.售货机。当应用程序已经安装时,INSTALL_REFERRER将意图。
If your app's package name is com.example.android
your URL will be something like this.
如果应用程序的包名是com.example。你的URL会是这样的。
https://play.google.com/store/apps/details?id=com.example.android&referrer=testReferrer
When you open the URL while the app isn't installed you can see in the logcat this debug log from Play Store:
当你在app未安装时打开URL,你可以在logcat中看到这个来自Play Store的调试日志:
1857-1857/com.android.vending D/Finsky﹕ [1] 1.run: Capture referrer for com.example.android
1857 - 1857 / com.android。运行:为com.example.android捕获推荐者
When you open the same URL while the app is already installed you can see this log instead:
当你在app已经安装时打开相同的URL,你可以看到这个日志:
1857-1857/com.android.vending D/Finsky﹕ [1] 1.run: Dropped referrer for com.example.android because already-installed
1857 - 1857 / com.android。自动贩卖机1.run: drop referrer for com.示例。android已经安装,因为