Skip to content

Conversation

@derMart
Copy link
Contributor

@derMart derMart commented Apr 5, 2024

Currently the implementation of getInitialLink just returns null to the client which breaks the authentication method of react native firebase using an email link only.
In their documentation there is no example code for this, but some apps implement authentication like this:
https://stackoverflow.com/questions/61564203/how-to-setup-sendsigninlinktoemail-from-firebase-in-react-native relying on the payload data of the dynamic links service.

This pull request implements

public void getInitialLink(IDynamicLinksCallbacks callback, String link) throws RemoteException {
callback.onStatusDynamicLinkData(Status.SUCCESS, null);
}

by parsing the link and returning the correct payload to the client. There are a few security related checks if the package name of the link does not match the receiving package name or if it is missing. I was able to get some logins to work. It might also fix #1547 as this is related to the dynamic links service, but I haven't tested apps reported there.

best :-)

@mar-v-in mar-v-in added this to the 0.3.2 milestone Apr 29, 2024
@mar-v-in mar-v-in changed the title Implement IDynamicLinksService -> getInitialLink for compatibility with react native firebase email link auth Implement IDynamicLinksService.getDynamicLink() for compatibility with react native firebase email link auth Apr 29, 2024
@mar-v-in mar-v-in merged commit ca833fe into microg:master Apr 29, 2024
zainarbani pushed a commit to zainarbani/GmsCore that referenced this pull request Jun 23, 2024
…h react native firebase email link auth (microg#2297)

Co-authored-by: Marvin W <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[com.tellm.android.app] Cannot login via mail (Firebase Dynamic Links?) to Jodel etc.

2 participants