未捕获错误:网络错误

Avi*_*Mor 6 angularjs firebase angularfire ionic-framework

在我尝试使用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="*" />
Run Code Online (Sandbox Code Playgroud)

并要求互联网用户许可:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Run Code Online (Sandbox Code Playgroud)

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

jsh*_*rpe 0

尝试这个。它对我有用。

<allow-navigation href="*.firebaseapp.com" />
Run Code Online (Sandbox Code Playgroud)