I have been researching about this topic for hours now, and I could not find any helpful information. So finally I have decided to create a Stackoverflow account for the first time.
Basically I have one Android application, it is hosted on one server where it will be downloaded from by the app users. However, links to the app will be distributed to many different affiliate websites each having a unique ID known to my system.
So I want to track these affiliates. The app needs to know which affiliate's link did the user click before the app was installed. And then the app will pass the affiliate number to our server.
example of the download url will be something like:- http://myserver.com/apphosting?affiliate=777&app.apk
Google supports this functionality only if you host the application on Google Play and allows you to use the install referrer. Am I correct?
Is there a way to solve this problem? it looks to me a very rare problem.
Thanks in advance. I really appreciate your help and few minutes of your precious time.
There are a few ways to go about this and to do them well they all involve a significant amount of effort.
individual cell phones can expose different IP addresses to servers within time spans of a few minutes
As you are distributing this application yourself, I would favor the first approach fairly heavily. It gives you better accuracy and is (at least in my opinion) easier to implement (and yes I've implemented something along the lines of both of these solutions). The downside of course is that you'll be distributing many different versions of your app, but if you do it right you should have only very minimal differences between the APKs that will only slightly increase your support overhead.