问题
Not Answered, Almost Same Question
To Explain My Goal:
I have an apk
URL that could be in a market (eg: Google Play, Bazaar, etc) or could be a direct link to apk
file.
To Explain My Requirements
I'll have to set referral link to broadcast it to app when installed on device.
Now we all know that Google Play
will broadcast referral (Campaign Attribution) to app, but our native market (Bazaar
) won't do this.
To Explain My Problem
Is there anyway to broadcast referral information manually by myself? if there is any way I would change all applications link to specific link that I'll generate for them to achieve referral info broadcasting.
In Other Word
I need to have the referrer that cause download when app installed successfully to understand that who is the real person that download and install this app from anywhere?
More Information
My priority is not involves with developing new application to act as a new market, but there is no limitation in technical method that you suggest. In other word I need some useful data (eg: Who Download, Who Installed from everywhere, Who Is Active, etc) about the application that I cause them to be installed.
Thanks in advance
回答1:
After searching & thinking I found an alternative way to do this in direct download.
Solution I achieved is as below:
- I have applications
apk
file on my server - When Custom client come to download page I'll create a file contains data that make that download as a unique and known download.
- Then I'll add that file to
apk
source and rebuild & resign the package (eg: using apktool) - Also I should wrote custom
SDK
to read the file in specific path (if exist) and send data to my server to have client info I need
In fact this scenario is in abstract mode already, so I should try to make it executable
回答2:
May be, you can create different apk
flavors(with same applicationID) for different host server/market. In different flavor you can hard code a server/market identifier variable/constant and identifier must be unique for each flavor.
So when a user opens the app , based on the identifier value you can identify the market/server URL from where app is downloaded.
Also you can try Google analytic in different apk
flavor. For installation Tracking you can create different installation Events for different Flavor.
I haven't tried this. Hope this help
来源:https://stackoverflow.com/questions/41740766/how-to-broadcast-referral-to-android-app-intallation