title: Android Firebase Auth Google failed code=10 Only on Phone
body: <p>I have been making an app for android and testing the google login worked fine when I used the emulator and on my phone directly. However, when I <em>&quot;generate a signed bundle/apk&quot;</em> and install the app on my same phone or any other phone, I get the following error:</p>
  <pre><code>D/~google~: signInResult:failed code=10
  </code></pre>
  <p>It's happening in this method:</p>
  <pre><code>private void handleSignInResult(Task&lt;GoogleSignInAccount&gt; completedTask) {
          try {
              GoogleSignInAccount account = completedTask.getResult(ApiException.class);
              // Signed in successfully, show authenticated UI.
              Log.d(&quot;~google~&quot;,&quot;successful google login&quot;);
              isLoginSuccessful = true;
              firebaseAuthWithGoogle(account.getIdToken());
          } catch (ApiException e) {
              // The ApiException status code indicates the detailed failure reason.
              // Please refer to the GoogleSignInStatusCodes class reference for more information.
              Log.d(&quot;~google~&quot;, &quot;signInResult:failed code=&quot; + e.getStatusCode());
          }
      }
  </code></pre>
  <p>I have searched for this answer, but I have not come across a consistent solution, specific to the behavior I'm observing.</p>