Using Android / Firebase Invite

Today I implemented AppInviteInvitation with Android and I can successfully send the invitation, but when the recipient tries to click the install button in the invitation, they will be sent to plus.google.com in the device browser.

Am I doing something wrong?

  private void onInviteClicked() {
    Intent intent = new AppInviteInvitation.IntentBuilder("Invite")
            .setMessage("Download")
            .setCallToActionText("Install")
            .build();
   final int REQUEST_INVITE = 0;
    startActivityForResult(intent, REQUEST_INVITE);
 }
+4
source share
1 answer

Try setting the deep link property to your application name.

.setDeepLink(Uri.parse(getString(R.string.app_name)))

I got a 404 error in the Google Plus link until I added the above statement to the Intent builder. After adding instructions, invitations behave as expected. I do not use deep links in my application, although they are enabled for the application through the Google Play console.

+1

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


All Articles