Google is deprecating intall_referrer intent soon. I found google analytic CampaignTrackingReceiver is using it in our project. Adding the code from manifest for reference:
<receiver android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
android:enabled="true"
android:exported="true"
android:permission="android.permission.INSTALL_PACKAGES">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
How can I replace this with firebase analytics?
Remove the Google Analytics install referrer broadcast from code. It will stop sending referrer data to https://analytics.google.com/analytics. But it won’t be a problem, we can configure Firebase in the project and track campaign data. Please check this video - https://www.youtube.com/watch?v=lvADEr1CfEs