i am trying to use install_referrer and have a question, my app only "catches" the referrer broadcast when its open or in the memory. but when you install an app from tha play store its not getting open nor on the memory, so how can i make my app catch the broadcast on installation if its not running on the backround? thats my code:
public class SDK_Referrer extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.d(TAG, "entered onRecive");
if (intent.getAction().equals("com.android.vending.INSTALL_REFERRER")) {
String referrer = intent.getStringExtra("referrer");
Thanks!