【问题标题】:Uncaught Error: A network error未捕获的错误:网络错误
【发布时间】:2016-12-30 18:38:07
【问题描述】:

在我尝试使用 firebase 身份验证服务后,我收到了uncaught error: a network error (such as timeout, interrupted connection or unreachable host) has occurred

我已尝试将所有相关域名列入白名单:

  <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="*" />

并请求互联网用户许可:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

但仍然 - 尽管代码在网络浏览器上完美运行,但它仍然在 android 模拟器上显示此错误。

【问题讨论】:

  • 嘿@aviran-mor 有没有机会找到解决方案?我想我在使用最新的 ionic (3.0.0) 和最新的 firebase (3.7.6) 时遇到了同样的问题

标签: angularjs ionic-framework firebase angularfire


【解决方案1】:

试试,这个。它对我有用。

<allow-navigation href="*.firebaseapp.com" />

【讨论】:

    猜你喜欢
    • 2020-10-30
    • 1970-01-01
    • 2020-03-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-14
    • 1970-01-01
    • 2016-12-20
    • 1970-01-01
    相关资源
    最近更新 更多