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!
- 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. 🎊
If you’re using Facebook login, there is one more step you need to go.
- 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
That’s all for this article, thank you for reading.