I am new to referrer concept.
I wrote a code whose goal is for the google playstore to send referrer data in the form of a broadcast to my application after installation, which I catch and process accordingly. The problem is that the data I request from google for fireback is different from what Google actually sends me.
I use the following code to create a link:
final String url = "intent://details?id=com.myapp&url="a dummy url"&referrer="+referrer+"#Intent;scheme=market;action=android.intent.action.VIEW;package=com.myapp;S.referrer="+referrer+";end";
Here referrer = <correct base64encoded string >
NOTE.
The original dummy URL doesn't work for me. My interest is to deny Google installing the application. It is assumed that I do not have an application installed on the device, so this should work. The backup happens correctly, and I head to the Google PlayStore, from where I install the application, and the referrer data is transferred to my application. I will catch the referrer data and show it in the toast in the assembly.
What I expect to see in the toast data: <my base64encoded one I sent>
What I see: "com.android.chrome"
Why is this happening?
source
share