title: Flutter: Google and Firebase login not working in production
body: <p>I use google_sign_in and firebase_auth. This works fine in simulator and also when compiling an apk and trying directly on a real device but when I publish this to Google Play and I install my app from it, it just doesn't work.</p>
  <p>I don't get any error. The login appears and when I click one of my accounts it closes without doing anything.</p>
  <p>After getting the credential from Google I login with Firebase to get the real data for that user:</p>
  <pre><code>Future googleSignIn(BuildContext context,
        [String? email, facebookCredential]) async {
      try {
        GoogleSignInAccount googleUser;
        dynamic popup = await _googleSignIn.signIn();
  
        // cancelled login
        if (popup == null) {
          return null;
        }
  
        googleUser = popup;
  
        GoogleSignInAuthentication googleAuth = await googleUser.authentication;
        final AuthCredential credential = GoogleAuthProvider.credential(
          accessToken: googleAuth.accessToken,
          idToken: googleAuth.idToken,
        );
        await _firebaseCredential(context, credential);
      } catch (error) {
        return null;
      }
    }
  
   _firebaseCredential(BuildContext context, credential) async {
        User user =
            (await FirebaseAuth.instance.signInWithCredential(credential)).user!;
        await firebaseProfile.updateUserData(user);
       // from here I do some Firebase changes but Google, Facebook, Apple and email login 
  }
  </code></pre>
  <p>All setup (including the required permissions in <code>AndroidManifest.xml</code>) is ok</p>