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
I developed a web app using Flutter and Firebase. Sign-in works fine on both mobile and desktop but Sign-out seems to only work on desktop... here's more context:
I use SignOutButton() from firebase_ui_auth-1.15.0
✅ On Chrome desktop (on my mac): clicking the button signs me out and takes me back to the welcome screen (expected behaviour)
❌ On Chrome on my Android phone: clicking the button doesn't do anything and I remained signed-in
✅ On Chrome on my Android phone but with the option "Desktop site" selected: clicking the button signs me out and takes me back to the welcome screen as expected.
Please note that the tests on my phone were done after creating the production build.
Here's the output of flutter doctor
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.4.1 24E263 darwin-arm64, locale en-ES)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/to/macos-android-setup for more details.
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
Download at: https://developer.apple.com/xcode/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is a package manager for iOS or macOS platform code.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/to/platform-plugins
For installation instructions, see https://guides.cocoapods.org/using/getting-started.html#installation
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] Connected device (2 available)
[✓] Network resources
and this is the relevant content of pubspec.yml
environment:
sdk: '>=3.0.6 <4.0.0'
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
go_router: ^13.2.0
firebase_core: ^3.4.0
firebase_auth: ^5.2.0
cloud_firestore: ^5.4.0
provider: ^6.1.2
firebase_ui_auth: ^1.15.0
firebase_ui_oauth_google: ^1.3.3
firebase_storage: ^12.2.0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I developed a web app using Flutter and Firebase. Sign-in works fine on both mobile and desktop but Sign-out seems to only work on desktop... here's more context:
I use
SignOutButton()
from firebase_ui_auth-1.15.0✅ On Chrome desktop (on my mac): clicking the button signs me out and takes me back to the welcome screen (expected behaviour)
❌ On Chrome on my Android phone: clicking the button doesn't do anything and I remained signed-in
✅ On Chrome on my Android phone but with the option "Desktop site" selected: clicking the button signs me out and takes me back to the welcome screen as expected.
Please note that the tests on my phone were done after creating the production build.
Here's the output of
flutter doctor
and this is the relevant content of
pubspec.yml
Beta Was this translation helpful? Give feedback.
All reactions