Closed davidianstyle closed 1 month ago
Showing my XCode configuration:
https://github.com/user-attachments/assets/f160dd7f-7676-4bb5-a8a7-ba5b9cd1f6ea
Tutorial instructs the user to use the web client ID in auth_gate.dart
but it really needs to be the client ID corresponding to the platform that you're running on (in my case, iOS). Changing the client ID to the correct one (in GoogleService-Info.plist
) fixed the issue and my app is no longer crashing.
Reported issue in the tutorial to Flutter here: https://github.com/flutter/website/issues/11052
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth, Firebase UI OAuth Google
What platform(s) does this bug affect?
iOS
List of dependencies used.
flutter pub deps -s list
Steps to reproduce
Followed this tutorial: Add a user authentication flow to a Flutter app using FirebaseUI
Made it successfully through to Step 7 Multiplatform Google Auth Sign In and carefully followed all steps outlined in "Configure iOS" including:
clientId
intoauth_gate.dart
GoogleService-Info.plist
intoios/Runner
ios/Runner/Info.plist
to include my specificREVERSED_CLIENT_ID
Expected Behavior
I built a minimal app using the Flutter Firebase Auth tutorial with nothing else added and cannot get "Sign in with Google" to work on iOS. I'd expect clicking the button to start the login flow rather than crash the app.
Actual Behavior
iOS app crashes when I click the "Sign in with Google" button.
Additional Information
https://github.com/user-attachments/assets/0f1911dc-d8e5-4e23-be7a-938fd73c136c
Logs: