Skip to content

Instantly share code, notes, and snippets.

@jirawatee
Last active September 29, 2017 12:08
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/cca2c48509954635152a338c382759af to your computer and use it in GitHub Desktop.
Save jirawatee/cca2c48509954635152a338c382759af to your computer and use it in GitHub Desktop.
Firebase Invites - Send invitation via email
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"))
.setCustomImage(Uri.parse("https://appjoy.org/wp-content/uploads/2016/06/firebase-invites-logo.png"))
.setCallToActionText("Install")
.build();
startActivityForResult(intent, REQUEST_INVITE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment