Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android firebase Google sign failing on Production but working on signed apk

I am working on an app that I have integrated Google firebase sign in.

On my firebase console, I have two SHA-1 certificate fingerprints:

  1. Debug key
  2. Key Generated by keytool

I synched google.services.json with the app and generated a signed apk using Android studio.

Also in my play store console, App signing is enabled.

The problem is that when I use the app downloaded from play store, sign in fails. It only works with the release I have on my computer.

What could be the issue?

like image 241
user3563950 Avatar asked Feb 02 '18 06:02

user3563950


1 Answers

You need to use the key provided by Google Play app signing in your firebase console.

It's described here "Register your app signing key with API providers".

"To find the certificate of the key Google uses to re-sign your APK for delivery:

  • Sign in to your Play Console.
  • Select an app.
  • On the left menu, click Release management > App signing. From this page, you can copy the most common fingerprints (MD5, SHA-1 and SHA-256) of your app signing certificate. If the API provider requires a different type of fingerprint, you can also download the original certificate in DER format and run it through the transformation tools that the API provider requires."
like image 164
Nick Fortescue Avatar answered Oct 18 '22 17:10

Nick Fortescue