SHA证书Firebase调试/发布 [英] SHA certificate firebase Debug/Release

查看:96
本文介绍了SHA证书Firebase调试/发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的android应用正在使用Firebase实时数据库, 我已经把应用程序调试了SHA证书指纹,当我用调试模式测试我的应用程序时,它可以工作,并且我从DB中获取数据,现在当我想要签名和发布该应用程序时,我对以前的应用程序所做的工作:我从Firebase项目控制台中删除了调试SHA证书指纹,然后放入了发行版SHA证书指纹,并且该应用现在已经投放市场,可以了." 但我想知道:

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)当我用发行版1删除调试SHA证书指纹时,当我在调试模式下运行应用程序时,它仍然可以工作吗?

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)我应该在Firebase控制台中放置调试并释放SHA证书指纹吗?

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

Q3)如果我将调试和发布SHA证书指纹放在firebase控制台中,然后下载从firebase提供的新配置文件,我的数据库连接是否仍可以在发布和调试模式下工作?

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 ?

推荐答案

以下是您的问题的答案.

Here are the answer to your questions.

  1. 仅当您还有调试模式的debug SHA certificate fingerprint时,它才有效.否则,它将无法正常工作.
  2. 是的,您应该在Firebase控制台中同时放入debugrelease SHA证书指纹.
  3. 是的,确实,如果将debugrelease SHA证书指纹放在Firebase控制台中,并且再次下载google-services.json文件并将其放在项目中的正确位置,则数据库连接仍将在发布和调试模式下均可工作.
  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.

这篇关于SHA证书Firebase调试/发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆