Merge pull request #1293 from bilalsyed001/master
[Android] Fix getInitialLink() is NULL
This commit is contained in:
commit
44907e3b14
|
@ -174,7 +174,11 @@ public class RNFirebaseLinks extends ReactContextBaseJavaModule implements Activ
|
||||||
|
|
||||||
// Looks at the internals of the link data to detect whether it's an invitation or not
|
// Looks at the internals of the link data to detect whether it's an invitation or not
|
||||||
private boolean isInvitation(PendingDynamicLinkData pendingDynamicLinkData) {
|
private boolean isInvitation(PendingDynamicLinkData pendingDynamicLinkData) {
|
||||||
return FirebaseAppInvite.getInvitation(pendingDynamicLinkData) != null;
|
FirebaseAppInvite invite = FirebaseAppInvite.getInvitation(pendingDynamicLinkData);
|
||||||
|
if (invite != null && invite.getInvitationId() != null && !invite.getInvitationId().isEmpty()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private DynamicLink.Builder getDynamicLinkBuilder(final ReadableMap linkData) {
|
private DynamicLink.Builder getDynamicLinkBuilder(final ReadableMap linkData) {
|
||||||
|
|
Loading…
Reference in New Issue