Android - Detecting various cases of app installation

三世轮回 提交于 2020-01-06 13:56:08

问题


I'm currently working on an app which will be used for marketing purpose. This app has a feature to share a link to device contacts or social media, to let other people download this app from Google Play Store. But my company has made a rule for this app:

If this app is downloaded from Google Play Store without clicking any shared link, it cannot be run (or simply, display an Alert Dialog then close the app). The only way to have this app running is to FIRSTLY click the link, then download.

So my question is, how can I make this possible? Do I have to find a way to detect clicked link? Or is there any alternatives?


回答1:


The purpose of putting in the Google Play Store is for people to find and use your app. Once they have the link to it, anyone can reach it and try to install it. However if all you want is a way to tie back to what was the driver of that install/launch then you may want to look at:

Google Play Campaign Attribution

If you want to limit your requirements on Google APIs or using a store other than Google Play, there are other vendors in this space as well which perform similar functions.



来源:https://stackoverflow.com/questions/27098548/android-detecting-various-cases-of-app-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!