Using Flutter's google sign_in
But seeing the following message when I use this statement to sign in a user
_googleSignIn.signIn();
E/flutter ( 6491): MissingPluginException(No implementation found for
method init on channel plugins.flutter.io/google_sign_in)
I verified the following steps:
GoogleSignInPlugin.registerWith(registry.registrarFor("io.flutter.plugins.googlesignin.GoogleSignInPlugin")); // is present
GeneratedPluginRegistrant.registerWith(this); // in MainActivity.Java
Is this error frequently reported by users. Not sure how to proceed. I am doing what most of the docs say and yet it doesn't work.
Other weird behavior I see is, first time I run flutter run it gets stuck on await googleSignIn.SignIn().
Only after I do a hot reload (by typing "r"), I see the above error message of :
E/flutter (12326): MissingPluginException(No implementation found for
method init on channel plugins.flutter.io/google_sign_in)
Question: Are there any alternatives to do basic auth on Flutter applications. I just need some kind of basic auth so that my server can know which user it is serving data to.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…