This was reported by a student of my course.
Reproduction steps
-
run the App on iOs simulator or real iOS device.
-
click on sign in with google button.
-
alert will popup "YOUR_APP_NAME Wants to Use 'google.com' to Sign In (Continue, Cancel)".
-
NOW lock the iOS device by pressing the device side button.
-
now unlock the iOS device.
you will notice that the spinner still working, and nothing you can do.
you must hot restart the app on simulator, or kill the app in real device.
you can use AppLifecycleState.resumed to reset variable.
but if you clicked on the button again you will get this error:
flutter: PlatformException(concurrent-requests, Concurrent requests to account signin, null)
flutter: message: PlatformException(concurrent-requests, Concurrent requests to account signin, null)