How to check out Google App Invites

I am currently implementing Google App Invites and I am wondering what is the best way to test fresh installations.

I can broadcast the INSTALL_REFERRER event with the corresponding deep link, for example:

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 will send a general broadcast with referral data. Is there currently a translation method a INSTALL_REFERRAL that also contains the relevant AppInviteReferral data?

Digging in the source reveals that there is com.google.android.gms.appinvite.REFERRAL_BUNDLE included as part of the intent, but I'm not sure how to build this as part of the broadcast.

edit I created a separate, more general question about the use of additional components when testing translations here

+6
source share
1 answer

I would use the demo application found here as a starting point. You can simply take the code here and test other devices on which your application is installed. NOTE. Your application should already be published in the play store.

-2
source

Source: https://habr.com/ru/post/988485/


All Articles