Firebase Phone Auth在发行版本中不起作用 [英] Firebase Phone Auth not working in release build
问题描述
OTP验证可正确进行调试构建.我还在Firebase控制台中为发行版添加了SHA键.但是,当我生成签名的APK并将其上传到Play商店时,Phone Auth无效. 将应用程序上载到Play商店的生产环境后,我应该同时保留调试SHA密钥和发布密钥吗? 在生产环境中使用Firebase应用程序是否必须进行Google App签名?
The OTP verification works properly for debug build. I have also added SHA key in firebase console for release version. But Phone Auth doesn't work when I generate signed apk and upload it to play store. Should I retain both debug SHA keys and release keys after I upload the app to production on play store? Is Google App Signing compulsory for using a firebase app on production?
推荐答案
如果这是在上传到Play商店的应用程序中出现的问题,那么下面的方法可能是可行的解决方案.
If this is the issue occurring on the app uploaded to play store, then below can be a feasible solution.
步骤
- 转到控制台并选择您的应用.
- 在发布管理下,转到应用签名.
- 找到SHA-1证书并将其复制.
- 转到firebase控制台并选择您的应用.
- 转到项目设置并添加此SHA-1证书.
您准备好再次摇摆.
这篇关于Firebase Phone Auth在发行版本中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!