I'm currently implementing Google's App Invites and I'm wondering what the best way to test fresh installs.
I can broadcast an INSTALL_REFERRER
event with the appropriate deep link like so:
adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n <your.package>/.<path.up.until.your.BroadcastReceiver> --es "referrer" "test_referrer=test"
But this would send a generic broadcast out with referral data. Is there currently a way to broadcast a INSTALL_REFERRAL
which also contains the appropriate AppInviteReferral
data?
Digging into the source reveals that there is a com.google.android.gms.appinvite.REFERRAL_BUNDLE
included as a part of the intent, but I'm unsure how to construct that as a part of the broadcast.
edit I have created a separate, more general question regarding the use of bundle extras when testing broadcasts here