### Describe the Bug
When I try to use the log with the Facebook provider, after successfully logging in with the Facebook popup I get the error: [firebase-auth/popup-closed-by-user] The popup has been closed by the user before finalizing the operation.
The weird thing is that I can only reproduce it when using the web version on a phone. When I try in the web desktop version it works just fine.
### Expected Behavior
Return the corrent UserCredential value once returned from the facebook auth page.
### To Reproduce
Future _signInWeb() async {
// Create a new provider
FacebookAuthProvider facebookProvider = FacebookAuthProvider();
facebookProvider.addScope('email');
facebookProvider.setCustomParameters({'display': 'popup'});
// Once signed in, return the UserCredential
return await FirebaseAuth.instance.signInWithPopup(facebookProvider);
// Or use signInWithRedirect
//await FirebaseAuth.instance.signInWithRedirect(facebookProvider);
//return await FirebaseAuth.instance.getRedirectResult();
}
### Relevant log output
_No response_
### flutter doctor -v
```shell
[√] Flutter (Channel stable, 3.16.5, on Microsoft Windows [versÆo 10.0.22621.3007], locale pt-BR)
• Flutter version 3.16.5 on channel stable at C:\Users\rafae\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 78666c8dc5 (6 weeks ago), 2023-12-19 16:14:14 -0800
• Engine revision 3f3e560236
• Dart version 3.2.3
• DevTools version 2.28.4
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\rafae\AppData\Local\Android\sdk
• Platform android-33, build-tools 31.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Ferramentas de Build do Visual Studio 2022 17.8.4)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
• Ferramentas de Build do Visual Studio 2022 version 17.8.34408.163
• Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2022.3)
• Android Studio at C:\Program Files\Android\Android Studio1
• 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 17.0.6+0-b2043.56-10027231)
[√] VS Code (version 1.85.2)
• VS Code at C:\Users\rafae\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [versÆo 10.0.22621.3007]
• Chrome (web) • chrome • web-javascript • Google Chrome 121.0.6167.139
• Edge (web) • edge • web-javascript • Microsoft Edge 121.0.2277.83
[√] Network resources
• All expected network resources are available.
• No issues found!
What version are you using?
6.0.4
What OS and version are you using to local deploy your application?
Chrome 121.0.6167.101 on Android 14
What platforms are you seeing the problem on?
web
pubspec.yaml
Future _signInWeb() async {
// Create a new provider
FacebookAuthProvider facebookProvider = FacebookAuthProvider();
}