I'm currently trying to test Google's App Invites, but I'm having a tough time testing the INSTALL_REFERRER
broadcast feature without putting an app up on the Play Store
App Invite broadcast intents require a bundle extra named "com.google.android.gms.appinvite.REFERRAL_BUNDLE"
and it's checked in AppInviteReferral
like so:
public static boolean hasReferral(Intent referralIntent) {
return referralIntent != null && referralIntent.getBundleExtra("com.google.android.gms.appinvite.REFERRAL_BUNDLE") != null;
}
When testing broadcasts using adb shell am broadcast ...
, the best we can do is add extras, but there's not option to add a bundle extra. (documentation here)
Anyone know how a bundle could be included as a part of the broadcast?