Closed kroikie closed 4 years ago
@kroikie I still see an exception being thrown for cancelling google sign in,so I believe this is not yet solved
I can confirm that this issue only persists in debug mode,And when signin cancelled in the release mode the app doesnt crash/freeze and continues to function,So I feel this is mostly with the ide that is throws the exception and dart is not able to capture it. so till it gets fixed,release mode gets the job done.
Still experiencing this.
flutter doctor:
[✓] Flutter (Channel beta, v1.15.17, on Mac OS X 10.15.3 19D76, locale en-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[✓] Android Studio
[✓] Android Studio (version 3.6)
[!] VS Code (version 1.44.1)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
Steps to Reproduce
download the example app : https://github.com/flutter/plugins/blob/0909e96c366f2f06643dd8f3be779a84aec37750/packages/google_sign_in/example/lib/main.dart#L100
add google_sign_in 3.2.4 to pubspeck
Build the App on either Android or iOS emulator
tap the google sign in button.
On Android -> click the back button -> the app throws an exception that is not caught (even by manually adding it to code) On iOS -> click the cancel button on the alert dialog -> the app throws an exception that is not caught (even by manually adding it to code)
5.1 On iOS, the app crashes when the email/phone text input is taped or on the screen prompting to enter email or phone when the cancel button is taped.-> Fixed by upgrading to the latest version of the sdk on master channel.LOGS
For Cancel button:
PlatformException(sign_in_canceled, com.google.GIDSignIn, The user canceled the sign-in flow.)
For the iOS crash: ~~The IDE doesn't output anything in the console. I ran it with XCode and got the following error:EXC_BAD_ACCESS (code=1, address=0x48) aka operation that should occur on the main Thread being run on a background thread.~~ -> Fixed by upgrading to the latest version of the sdk on master channel.
Flutter analyze
Flutter doctor