Register the receiver

In order for the SDK to become aware of the referrer information passed along by the Google Play Store with the app, update the manifest so the receiver is registered.

Android fires an intent called com.android.vending.INSTALL_REFERRER during the application install process.

In order for this intent to be captured, add your receiver inside the block of AndroidManifest.xml.
<receiver android:name="com.localytics.android.ReferralReceiver" android:exported="true">
      <intent-filter>
        <action android:name="com.android.vending.INSTALL_REFERRER" />
      </intent-filter>
</receiver>