2

I'm not getting install referrer received on application installed from the play store. Below is my Androidmanifest.xml shows receiver which is inside <application> tag too.

 <receiver android:name="com.usplnew.getreferrer.CustomReceiver" android:exported="true" > <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> 

And below is code for Receiver

public class CustomReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { System.out.println("sgn RECEIVED"); Log.d("YES", "IT WORKS!!"); Toast.makeText(context, "Received Intall Referrer", Toast.LENGTH_SHORT) .show(); } } 

Its working well with below command on emulator and device too

adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.uspl.getrefferer/com.uspl.getrefferer.CustomReceiver --es "referrer" "https://play.google.com/store/apps/details?id=com.NextGen.Water.Run&referrer=IWantThisReferrer" 

I also put the same below code into the app into the production on Google Play. But INSTALL REFERRER is not received when the application is installed.

I would highly appreciate if someone guide where I'm wrong.

Thanks in Advance!

4
  • Did you ever figure this one out? Commented Aug 27, 2015 at 2:52
  • @PDsHAH5382 ... Did u get the solution of these problem?? Commented Dec 3, 2015 at 5:57
  • @DavidLiu .. Did u get the solution of these problem Commented Dec 3, 2015 at 5:58
  • Did you find the solution? as I am facing the same issue. Commented Oct 8, 2018 at 6:50

1 Answer 1

0

Have you checked your implementation of your own class of BroadcastReceiver with this documentation - https://developers.google.com/analytics/devguides/collection/android/v1/devguide#campaigns ?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.