Closed mblaughton closed 4 years ago
Update: I don't understand why yet, but removing the flutter_facebook_login
package from pubspec.yaml (and commenting out all references to it) fixes the problem with the call to googleSignIn.signIn(). Possibly a namespace collision somewhere within?
Hello, Have you set up the facebook sign method on firebase?
So... that worked. And now I'm laughing for two reasons:
Thanks for the help!
Yeah, confused the heck out of me too.
Great project, thanks!
However when I tried to use this code in a freshly created project using Flutter 1.17.1 (stable) it throws the following exception whenever I tap "Sign in with Google". It also happens when signing out.
Debug console:
Exception:
When I use the project as-is from github it works perfectly, but thought you'd like to know there may be an issue with new projects going forward, at least on Android. It appears they recently changed how plugins are embedded, which I suspect is related to this regression.
To reproduce:
flutter create my_project
lib
,assets
, andpubspec.yaml
with yours (but withfirebase_auth: ^0.16.0
andgoogle_sign_in: ^4.4.4
)Expected: Should sign in like the official github project Actual: Throws above error/exception
The exception is being triggered on the following line in
firebase_auth_service.dart
, specifically in thesignIn()
function:final GoogleSignInAccount googleUser = await googleSignIn.signIn();
I'm continuing to troubleshoot and will update if I find anything, but wanted to let you know.