Repository: flutter
Issue: [google_sign_in] Locking iOS device during sign-in prevents going further and throws `PlatformException(concurrent-requests, Concurrent requests to account signin, null, null)` exception
Labels: platform-ios,p: google_sign_in,package,has reproducible steps,P2,found in release: 2.10,found in release: 2.11,team-ios,triaged-ios

## Steps to Reproduce

1. Run the [example project](https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in/example) using an iOS simulator or real device
2. Hit the login button
3. An alert is shown
4. Lock the device
5. Unlock device (alert is gone, but is normal on iOS)
6. Hit the login button

**Expected results:**
Alert should be shown like when hitting the login button the first time.

**Actual results:**
No alert is shown, nothing happens. (See attached video.)

**Note**: while the sample app does not give any error logs, I was able to log an exception using another app:
```
PlatformException(concurrent-requests, Concurrent requests to account signin, null, null)

```

<details>
<summary>Code sample</summary>

Just use the [example project](https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in/example) 

</details>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->


[verbose.log](https://github.com/flutter/flutter/files/8062090/verbose.log)

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
% flutter analyze
Analyzing example...                                                    
No issues found! (ran in 2.4s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
% flutter doctor -v
[✓] Flutter (Channel stable, 2.10.0, on macOS 12.1 21C52 darwin-arm, locale en-DE)
    • Flutter version 2.10.0 at /opt/homebrew/Caskroom/flutter/2.5.1/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5f105a6ca7 (13 days ago), 2022-02-01 14:15:42 -0800
    • Engine revision 776efd2034
    • Dart version 2.16.0
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc4)
    • Android SDK at /Users/tobi/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0-rc4
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (2 available)
    • iPhone SE (2nd generation) (mobile) • 8D00E4E4-3334-4749-BD5E-147C036CAC76 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
    • Chrome (web)                        • chrome                               • web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>


https://user-images.githubusercontent.com/366172/153894652-534e6f13-6f33-4da0-b0ce-4fe2f1cbfd78.mp4


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->