Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to broadcast referral to android app intallation

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

like image 577
Hossein Shahsahebi Avatar asked Jan 19 '17 11:01

Hossein Shahsahebi


People also ask

How does Google Play install referrer work?

The Play Install Referrer API Client Library is written in the Java programming language and is a wrapper for the Android Interface Definition Language (AIDL) file that defines the interface to the Install Referrer service. You can use the Play Install Referrer API Client Library to simplify your development process.

How do I do a test install referrer?

Start Google Play on the device using campaign link, for example, https://play.google.com/store/apps/details?id=com.test.test_project&referrer=utm_source%3Dtest_source%26utm_medium%3Dtest_medium%26utm_term%3Dtest-term%26utm_content%3Dtest_content%26utm_campaign%3Dtest_name (You can use google play generator: https:// ...


2 Answers

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

like image 144
Hossein Shahsahebi Avatar answered Oct 22 '22 07:10

Hossein Shahsahebi


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

like image 39
Akhilesh Kumar Avatar answered Oct 22 '22 07:10

Akhilesh Kumar