title: Referral Code not retrieve after installing from play store
body: <p>I needed to integrate referral code implementation in my app for that I created url with : 
  <a href="https://play.google.com/store/apps/detailsid=MY_PACKAGE_NAME&amp;referrer=USER_REFERRAL_CODE" rel="nofollow noreferrer">https://play.google.com/store/apps/detailsid=MY_PACKAGE_NAME&amp;referrer=USER_REFERRAL_CODE</a></p>
  
  <p>and created broadcast receiver for that</p>
  
  <h1>InstallReferrerReceiver.java</h1>
  
  <pre><code>public class InstallReferrerReceiver extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
      if (intent.getAction().equals("com.android.vending.INSTALL_REFERRER")) {
          String referrer = "";
          Bundle extras = intent.getExtras();
          if (extras != null) {
              referrer = extras.getString("referrer");
          }
          Log.e(TAG, "Referal Code Is: " + referrer);
          AppMethod.setStringPreference(context, AppConstant.PREF_REF_ID, referrer);
         }
      }
   }
  </code></pre>
  
  <h1>Register Receiver in manifest.xml</h1>
  
  <pre><code>&lt;receiver
          android:name="com.gum.getumoney.Service.InstallReferrerReceiver"
          android:exported="true"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.android.vending.INSTALL_REFERRER" /&gt;
          &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>There is my receiver call after installing app from play store but I got null value in Referral Code</p>
  
  <p>I needed to get user code who refer app to another user. But to doing this I am getting fail. Also I test my receiver in Terminal using shell script it works fine for me.</p>
  
  <p>So if there is any issue with this code then address me for doing this or suggest me another way to doing this. Thanks... </p>