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.