Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created January 13, 2017 11:42
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 hitherejoe/b1dc9afba2ded8088012f726eec5d734 to your computer and use it in GitHub Desktop.
Save hitherejoe/b1dc9afba2ded8088012f726eec5d734 to your computer and use it in GitHub Desktop.
AppInvite.AppInviteApi.getInvitation(googleApiClient, this, autoLaunchDeepLink)
.setResultCallback(
new ResultCallback<AppInviteInvitationResult>() {
@Override
public void onResult(@NonNull AppInviteInvitationResult result) {
if (result.getStatus().isSuccess()) {
Intent intent = result.getInvitationIntent();
String deepLink = AppInviteReferral.getDeepLink(intent);
// Handloe the deep link
} else {
Log.d(TAG, "Oops, looks like there was no deep link found!");
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment