I am working with the sample code here to integrate Firebase Invites into my app: https://github.com/firebase/quickstart-android/tree/master/invites
The sample works as expected, when I click on the Invite button, I receive a screen where I can select the recipient of my invite. See image.
However, when I add the exact same code to my app, after clicking the invite button, I receive a native Android chooser which let's me decide what app should perform this action. See image.
If I dismiss this chooser, I am then taken to the expected Invite screen where I can choose the recipient.
What I am wondering, how do I get rid off that default app chooser. There must be something in my app (even though I think the code is the same as the sample) which causes the chooser to appear.
any ideas? thanks
EDIT:
public void onInviteClicked() {
Intent intent = new AppInviteInvitation.IntentBuilder(getString(R.string.invite_title))
.setMessage(getString(R.string.invite_message))
.setDeepLink(Uri.parse(getString(R.string.invite_deep_link)))
.setCustomImage(Uri.parse(getString(R.string.invite_custom_image)))
.setCallToActionText(getString(R.string.invite_cta))
//.setEmailSubject("subject of email")
.build();
startActivityForResult(intent, REQUEST_INVITE);
}