From 68592fa74138a2d3251dbce5972e7cddbdedf7d2 Mon Sep 17 00:00:00 2001 From: EddyVerbruggen Date: Fri, 8 Sep 2017 15:25:00 +0200 Subject: [PATCH] Invites on Android: AppInviteApi has been deprecated #478 --- firebase.android.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firebase.android.js b/firebase.android.js index 17734bc9..8026b710 100755 --- a/firebase.android.js +++ b/firebase.android.js @@ -2106,9 +2106,9 @@ firebase.invites.getInvitation = function () { } }); - // TODO I think this is deprecated since 11.0 - check the latest docs: https://firebase.google.com/docs/invites/android - com.google.android.gms.appinvite.AppInvite.AppInviteApi.getInvitation(firebase._mGoogleApiClient, activity, autoLaunchDeepLink) - .setResultCallback(getInvitationCallback); + firebaseDynamicLinks.getDynamicLink(activity.getIntent()) + .addOnSuccessListener(onSuccessListener) + .addOnFailureListener(onFailureListener); } catch (ex) {