You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[google_sign_in_web] googleSignIn.signIn() hangs forever if can't connect to apis.google.com #70427
PS C:\Users\taha\AndroidStudioProjects\triage\flutter_plugin_examples\google_signin_example> flutterb run -d chrome --debug --web-hostname localhost --web-port 7357
Launching lib\main.dart on Chrome in debug mode...
Syncing files to device Chrome...
8,289ms (!)
Debug service listening on ws://127.0.0.1:53194/pRR4YSLUgYo=
Warning: Flutter's support for web development is not stable yet and hasn't
been thoroughly tested in production environments.
For more information see https://flutter.dev/web
To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".
[object Object]
[object Object]
Package version
google_sign_in: ^4.5.6
flutter doctor -v
[✓] Flutter (Channel beta, 1.23.0-18.1.pre, on Microsoft Windows [Version 10.0.19042.610], locale en-US)
• Flutter version 1.23.0-18.1.pre at C:\Code\flutter_beta
• Framework revision 198df796aa (4 weeks ago), 2020-10-15 12:04:33 -0700
• Engine revision 1d12d82d9c
• Dart version 2.11.0 (build 2.11.0-213.1.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Code\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Code\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Android Studio (version 4.1.0)
• Android Studio at C:\Code\android-studio
• 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 1.8.0_242-release-1644-b01)
[✓] VS Code (version 1.51.1)
• VS Code at C:\Users\taha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.16.0
[✓] Connected device (4 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web) • chrome • web-javascript • Google Chrome 86.0.4240.198
• Edge (web) • edge • web-javascript • Microsoft Edge 86.0.622.63
• No issues found!
I've reproduced this happening. We need to ensure that the underyling google sign in JS SDK has loaded.
We might be able to attach to the onerror event of its script tag, and see if the browser reports the error to know that the plugin hasn't been downloaded properly, another thing we can do (less optimal) is to allocate some timer on the JS callback of the script.
The second option is less efficient, but might end up being required anyway, especially depending on how the browser reacts to the actual blocking; and/or how the firewall is actually blocking the domain.
(I'll add this to the "Flutter Web Plugins" project, I can't work immediately on this.)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
TahaTesser commentedon Nov 13, 2020
Hi @treeder
Is there a reason to block
apis.google.com, can you please provide more detailsI can reproduce the issue
code sample
logs
Package version
flutter doctor -v
[✓] Flutter (Channel beta, 1.23.0-18.1.pre, on Microsoft Windows [Version 10.0.19042.610], locale en-US) • Flutter version 1.23.0-18.1.pre at C:\Code\flutter_beta • Framework revision 198df796aa (4 weeks ago), 2020-10-15 12:04:33 -0700 • Engine revision 1d12d82d9c • Dart version 2.11.0 (build 2.11.0-213.1.beta) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at C:\Code\sdk • Platform android-30, build-tools 30.0.2 • Java binary at: C:\Code\android-studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) • All Android licenses accepted. [✓] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [✓] Android Studio (version 4.1.0) • Android Studio at C:\Code\android-studio • 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 1.8.0_242-release-1644-b01) [✓] VS Code (version 1.51.1) • VS Code at C:\Users\taha\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.16.0 [✓] Connected device (4 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator) • Web Server (web) • web-server • web-javascript • Flutter Tools • Chrome (web) • chrome • web-javascript • Google Chrome 86.0.4240.198 • Edge (web) • edge • web-javascript • Microsoft Edge 86.0.622.63 • No issues found!treeder commentedon Nov 13, 2020
Main reason is to emulate an app being used in China which can't access any Google domains.
ditman commentedon Dec 12, 2020
I've reproduced this happening. We need to ensure that the underyling google sign in JS SDK has loaded.
We might be able to attach to the onerror event of its script tag, and see if the browser reports the error to know that the plugin hasn't been downloaded properly, another thing we can do (less optimal) is to allocate some timer on the JS callback of the script.
The second option is less efficient, but might end up being required anyway, especially depending on how the browser reacts to the actual blocking; and/or how the firewall is actually blocking the domain.
(I'll add this to the "Flutter Web Plugins" project, I can't work immediately on this.)
9 remaining items
[google_sign_in] Redesign API for current identity SDKs (flutter#9267)
[google_sign_in] Redesign API for current identity SDKs (flutter#9267)
github-actions commentedon Jul 8, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[google_sign_in] Redesign API for current identity SDKs (flutter#9267)
[google_sign_in] Redesign API for current identity SDKs (flutter#9267)
[google_sign_in] Redesign API for current identity SDKs (flutter#9267)