Mom, my Firebase auth is not working after publishing on Google Play!

Just like the title mentioned, the Firebase auth of my Android app is not working after publishing it 🤷‍♂️. After all, I figured out that Google Play will produce a new fingerprint for publishing apps. Here is the way to find the fingerprint and set it on Firebase project and Facebook.

Let’s get started!

  1. Go to Google Play Console, select the app you want to get new fingerprint and click “View app”.

2. Select “App integrity” under “Setup” section on the left side of the page and you will see the fingerprints. In my case, I copy SHA-1 for my Firebase project.

3. Now switch to Firebase console, select your project and go to the project settings.

4. Choose your app you want to add new fingerprint to, scroll to bottom and you’ll see “Add fingerprint” button, click it, paste the fingerprint that we just copied. Right now your Firebase auth should be working perfectly on your Android app. 🎊

Option

If you’re using Facebook login, there is one more step you need to go.

  1. Head to Facebook for Developers and select your project.

2. Click “Basic” under “Settings” section

3. Scroll page to Android section and add Key Hashed. Now you will notice the format will be different from SHA-1. How to convert SHA-1 fingerprint to Key Hash?

4. Open Terminal (I’m using MacOS) and type the command below, the output will be your Key Hash. Copy and paste it to your project on Facebook for Developers. It’s all done! 🙌

echo [your fingerprint] | xxd -r -p | openssl base64

References

Google play app signing key hash

That’s all for this article, thank you for reading.

Shares Android development and Kotlin programming.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store