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 ?
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.
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.
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.
Here are the answer to your questions.
debug SHA certificate fingerprint
for debug mode. Otherwise, it won't work.debug
and release
SHA certificate fingerprints.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.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With