简体   繁体   English

已签名的.apk在调试.apk正常工作的地方无法正常工作

[英]Signed .apk not working where debug .apk works fine

I am facing a problem of my android app(online streaming app). 我遇到了我的Android应用程序(在线流应用程序)的问题。 I had to make an app in which performs online video streaming. 我必须制作一个执行在线视频流的应用程序。 It has firebase phone number authentication. 它具有Firebase电话号码身份验证。 my problem is that the debug app is working properly but the signed apk is not working properly at authentication section. 我的问题是调试应用程序可以正常运行,但是签名的apk在身份验证部分无法正常运行。 it does not send verification code. 它不发送验证码。 please help me out configure it.. 请帮我配置一下。

Often, this kind of problem is linked with the android permissions. 通常,这种问题与android权限有关。 The app works fine in debug mode because android is "allowing" your phone by default. 该应用在调试模式下可以正常运行,因为android默认情况下会“允许”您的手机。 Try to add the "android.permission.INTERNET" in your android manifest and try to deploy the app again. 尝试在您的android清单中添加“ android.permission.INTERNET”,然后尝试再次部署该应用。

Hope this is helpful, good luck 希望这会有所帮助,祝你好运

You need to add SHA1 of your release key store file in firebase console. 您需要在Firebase控制台中添加发布密钥存储文件的SHA1

you can get SHA1 with follow command 您可以使用Follow命令获取SHA1

keytool -list -v -keystore {keystore_name} -alias {alias_name}

eg: 例如:

keytool -list -v -keystore C:\Users\me\Desktop\release.jks -alias sample

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM