title: Android Firebase Authentication Not Working On Release APK
body: <p>I implemented Firebase authentication and it works when app is installed from Android Studio but not from exported release apk (or from Google Playstore).</p>
  
  <p>I did the following:</p>
  
  <ul>
  <li>Copied the app SHA-1 certificate fingerprint from Google Play Store - Release managemet - App signing.</li>
  <li>On Firebase console under Project settings - My App I Added Fingerprint and pasted the SHA-1 characters from Google Playstore Console.</li>
  <li>Now I have 2 SHA-1 (Debug and Release) under Firebase SHA certificate fingerprints</li>
  <li>I downloaded the google-services.json and added it to the root of my /app directory and re-generated signed apk.</li>
  <li><p>The <code>PhoneAuthProvider.OnVerificationStateChangedCallbacks</code> calls <code>public void onVerificationFailed(FirebaseException e)</code> with the following exception returned:</p>
  
  <pre><code>This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console.
  </code></pre></li>
  </ul>
  
  <p>I even generated the SHA-1 from command line using release keystore and the same SHA-1 from Google Playstore is generated.</p>
  
  <p>Also, why are developers hiding their SHA-1 keys in screenshots?</p>