-
Notifications
You must be signed in to change notification settings - Fork 29
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
Handling Back Navigation in Android Version 14: Dealing with Google Authenticator Popup Dismissal #53
Comments
Hey @omeremp. Can you please provide more information about your problem? What pop up do you mean, are you talking about the Google Password Manager popup? |
I'm referring to the signup process. No exception is thrown when I click outside the below pop-up. This issue is occurring in Samsung pop-up. It was working fine on Android 13, but when I updated my phone to Android 14, this issue started occurring. |
@incorbador is there any update ? Is there any further detail required ? |
@omeremp I the tested the same example on a Samsung and I got the behaviour you described. It doesn't matter if I use Samsung Pass or Google Credential Manager, in both cases the click outside of the popup doesn't throw that Android exception. I am afraid that we can't solve this in our packages, this appears to be a decision (or a bug by Samsung's own version of Android). If you click explicitly on "cancel" the exception is thrown btw. (but I guess that is not what you want). I did a bit of research but couldn't find any docs by Samsung. Therefore, I think the next step here would be to reach out to Samsung. |
@incorbador @omeremp I have resolve this issue by catching and handle various events using Widgets and callbacks provided by the Flutter framework. Step#01 Add class _MyWidgetState extends State with WidgetsBindingObserver { @OverRide In this example, the _MyWidgetState class implements WidgetsBindingObserver to listen for changes in the app's lifecycle. The didChangeAppLifecycleState method is then overridden to perform actions when the app is resumed or focused. You can similarly handle other events like input changes, visibility changes. It will print('App resumed/focused'); when user click outside on Samsung pop up , so on resumed you can perform back action |
Hey @Raja1234p. I think that's a good approach to deal with the Samsung issue |
In android version 14 when the user clicks outside the pop up, and since the Google Authenticator pop up doesn't throw any exceptions, how can I navigate back to the previous screen?
The text was updated successfully, but these errors were encountered: