Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SHA certificate firebase Debug/Release

My android app is using firebase realtime Database, i've putted the app debug SHA certificate fingerprints , and when I test my app with debug mode it works and I get data from DB , now when I want to sign and release the app , " what i've done with my previous app : I delete the debug SHA certificate fingerprint from firebase project console and then I put the release SHA certificate fingerprint and the app is on the market now and it's OK" but I want to know :

Q1)when I deleted the debug SHA certificate fingerprint with the release one , it will still work when I run my app in debug mode ?

Q2) should i put debug and release SHA certificate fingerprint in the firebase console ?

Q3) If i put debug and release SHA certificate fingerprint in the firebase console then download the new configuration file provided from firebase , my database connexion will still work either on release and debug mode ?

like image 699
Repiut Avatar asked Nov 17 '17 09:11

Repiut


People also ask

How do you debug Sha?

How to generate SHA-1 for debugging? There are three ways in which we can get the SHA-1, the first solution would be to use Keytool utility, the second one would be to use Gradle's Signing Report, and the third one would be to read it directly in Android Studio.

How do I get Sha key for release?

Generate SHA-1 for Release Mode 1-First add keystore config in your gradle How to add config in gradle. 2-After Adding Config in gradle change build variant. 3-Then Follow Above Procedure you will get SHA-1 for release mode. 4-Check Image.

How do I get SHA-1 from debug keystore?

Click on the Gradle tab on the right hand side of the Android Studio window. UPDATE: (Newer versions) In case you don't find an android folder here, go to :app instead of root, navigate to Tasks>android and you'll find signingReport. Double click on signingReport, this will build and post the SHA1 in the bottom view.


1 Answers

Here are the answer to your questions.

  1. It will work only if you still have the debug SHA certificate fingerprint for debug mode. Otherwise, it won't work.
  2. Yes, you should put in your Firebase Console, both debug and release SHA certificate fingerprints.
  3. Yes indeed, if you put the debug and release SHA certificate fingerprint in the Firebase Console and if you download the google-services.json file again and put it in the right place in your project, your database connection will still work either on release and debug mode.
like image 68
Alex Mamo Avatar answered Sep 20 '22 11:09

Alex Mamo