未捕获的错误:网络错误 [英] Uncaught Error: A network error
本文介绍了未捕获的错误:网络错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试使用Firebase身份验证服务后,我得到了uncaught error: a network error (such as timeout, interrupted connection or unreachable host) has occurred
after I've tried to use the firebase authentication service, I got an uncaught error: a network error (such as timeout, interrupted connection or unreachable host) has occurred
我已尝试将所有相关域名列入白名单:
I have tried to whitelist all related domain-names:
<allow-intent href="*.firebaseio.com" />
<allow-intent href="*.firebaseapp.com" />
<allow-intent href="*.google.com" />
<allow-intent href="*.googleapis.com" />
<allow-intent href="*.cloudflare.com" />
<allow-intent href="auth.firebase.com" />
<access origin="*" />
并请求互联网用户许可:
and ask for internet user permission:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
但仍然-尽管代码可以在网络浏览器上完美运行,但仍会在android模拟器上显示此错误.
but still - despite the code run perfectly on web browser, it keep showing this error on the android emulator.
推荐答案
尝试一下.它对我有用.
try, this. it worked for me.
<allow-navigation href="*.firebaseapp.com" />
这篇关于未捕获的错误:网络错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文