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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 [firebase_ui_auth] EmailVerifiedAction can't trigger callback after verify email #221
Comments
Hi @Trung15010802, Do you experience this same issue with the plugin example app? I just ran the plugin example app and when I verified the email and returned to the app, I was directed to the profile page. |
I did almost the same as the example app but I didn't use actionCodeSettings. Does that make a difference? |
I experienced the same issue. A workaround is to develop your own email verification screen using StreamBuilder that listens to |
I don't think it should, does it work if you configure |
Events are fired when the following occurs:
As flutter documentation said, I don't see if emailVerified event |
|
Hi @Trung15010802, if you configure your AuthStateChangeAction like below, does it work? AuthStateChangeAction((context, state) {
final user = switch (state) {
SignedIn(user: final user) => user,
CredentialLinked(user: final user) => user,
UserCreated(credential: final cred) => cred.user,
_ => null,
};
switch (user) {
case User(emailVerified: true):
Navigator.pushReplacementNamed(context, '/profile');
case User(emailVerified: false, email: final String _):
Navigator.pushNamed(context, '/verify-email');
}
}), |
Thank you for your support. But it's doesn't work for me. |
Hi @Trung15010802, could you please provide a complete minimal reproducible code sample in a repo that we can clone so that we can investigate this? Thank you |
Hi @danagbemava-nc |
Hi @tahamaddam, using your code sample, after returning to the app from verifying my email, the app properly redirects me to the home page. How is your firebase project configured? |
Was this message for me? @danagbemava-nc |
Sorry @tahamaddam, it was for @Trung15010802 @utsavDave97, can you test on a physical device to see if you still get this issue? |
Yes i have already tested in real device. I configure firebase like this tutorial |
Labeling for further investigation as I cannot reproduce this locally cc @lesnitsky, maybe you can offer some insight as to why this is happening |
Does this method will still work after Firebase Dynamic Links deprecation in August 2025? Maybe this part must be reviewed / refactored. ActionCodeSettings has no more sense. https://firebase.google.com/support/dynamic-links-faq FYI @danagbemava-nc |
Working on my side too, maybe it's something related to Firebase config, did you put the right SHA related to your build on Firebase? |
In my case, if you don't leave the app the verification never happens. You have to leave the app and re-open it. Example:
Perhaps this isn't a common flow a real user would go through as they would check their email from the same device. But as a developer building on a simulator or test devices I don't necessarily have email access on the same device. This is the most likely flow I hit the first time I tried and it took me a while to realize what was going on. |
Hi , |
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
transitive dependencies:
Steps to reproduce
Steps to Reproduce:
Expected Behavior
Should trigger EmailVerifiedAction callback or show some UI to trigger it
Actual Behavior
infinity loading indicator
Additional Information
The text was updated successfully, but these errors were encountered: