Now, let's explain the preceding code:
- We're building a new Intent using the AppInviteInvitation Firebase app intent library.
- We're setting a couple of options:
- The setMessage() method: This method will add the app invite message's content. This content will work on both SMS and email. We do have another option for email sending--using the setEmailHtmlContent method; this one will let us provide custom HTML content for our email; this can be really customizable.
- The setDeepLink() method: This method will let us add the deep link. When provided, this will make a custom and add it to your app invite SMS/email.
- Finally, we're starting the activity with the intent we built.
- In the onCreate method, we're simply listening to ...