Skip to content

Instantly share code, notes, and snippets.

@jirawatee
Last active September 29, 2017 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jirawatee/66373b462d108b61bddb4f3755d39c2c to your computer and use it in GitHub Desktop.
Save jirawatee/66373b462d108b61bddb4f3755d39c2c to your computer and use it in GitHub Desktop.
Firebase Invites - Send invitation via email with HTML
Intent intent = new AppInviteInvitation.IntentBuilder("Send App Invitation")
.setMessage("Special season for this app is starting now, try it and get 100 baht")
.setDeepLink(Uri.parse("http://example.com/offer/100_baht"))
.setEmailHtmlContent("<a href='%%APPINVITE_LINK_PLACEHOLDER%%'><h1>Check it out here!</h1><img src='https://appjoy.org/wp-content/uploads/2016/06/firebase-invites-logo.png'></a>")
.setEmailSubject("Firebase Invites want to give you 100 baht")
.build();
startActivityForResult(intent, REQUEST_INVITE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment