-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛firebase_ui_auth] Signin link open app but dont't trigger login #283
Comments
Hi @QuentinSc, do you have this same issue if you test using the plugin example app? If not, could you please provide a complete minimal reproducible code sample in a repo that we can clone so that we can investigate this issue? Thank you |
Hello, |
Thanks for the update. I can reproduce this using the plugin example app. It doesn't seem like the app gets the new state after the login success. When I restart the app, I am taking to profile screen (which indicates that the login was successful, the app just may not have received the state update) I tested this on android To reproduce
|
Thank you |
Hello, |
Is there any workaround like using an older version or overriding some code to get this to work until a fix is released? |
Hi guys, here is a fix for this issue. I've tested this and it works well for me. This fix is in:
|
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
Android
List of dependencies used.
flutter pub deps -s list
Steps to reproduce
Hello,
Just followed sample to use magic link
return SignInScreen( showAuthActionSwitch: false, providers: [emailProvider], actions: [ AuthStateChangeAction<SignedIn>((context, state) {}), AuthStateChangeAction<SendingLink>((context, state) {}), ], );
Expected Behavior
WHen opening the app from the link received by mail, the user must be logged.
Actual Behavior
Nothing.
App oppened, but no auth state change, like it's triggering nothing
Additional Information
I checked the library code and see that it uses FirebaseDynamic Link
void awaitLink(String email) { _dynamicLinks.onLink.first .then((linkData) => _onLinkReceived(email, linkData)) .catchError(authListener.onError); }
It should work because I've dlecared this prefix in Firebase.
I tried to get myself the dynamic link with the FirebasePackage
final PendingDynamicLinkData? initialLink = await FirebaseDynamicLinks.instance.getInitialLink(); if (initialLink != null) { final Uri deepLink = initialLink.link; // Always null }
FirebaseDynamicLinks.instance.onLink.listen( (pendingDynamicLinkData) { // Never triggered }, );
So
AuthStateChangeAction<SendingLink>((context, state)
Thank you !
The text was updated successfully, but these errors were encountered: