【问题标题】:Firebase authentication network error on Android using Ionic app使用 Ionic 应用程序在 Android 上的 Firebase 身份验证网络错误
【发布时间】:2017-04-15 18:45:02
【问题描述】:

我的 Ionic2 应用程序在 windows chrome 上运行良好。我正在使用 Firebase。 在 Android 模拟器上运行时出现网络错误:

A network error (such as timeout, interrupted connection or unreachable host) has occurred.

我尝试了一些建议但没有成功:

  • 我将按钮从提交类型更改为按钮类型
  • 我检查了白名单
  • 我删除了表单的使用。

没有任何效果。

在 Android 上运行网络应用程序之前,我应该在 Firebase 中配置什么吗?

【问题讨论】:

    标签: android angularjs firebase ionic-framework firebase-authentication


    【解决方案1】:

    我终于能够修复它,答案是白名单。我必须运行以下命令: cordova 插件添加cordova-plugin-whitelist科尔多瓦准备

    我以前做过一次,但我可能错过了一些东西,所以我又做了一次。我不太明白它的意思,所以我不能在这里解释。

    现在该应用程序可以在 Web 和 Android 模拟器上运行(使用 firebase+Ionic 2 + Angularjs)

    还是谢谢 :-)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-13
      • 2022-08-15
      • 2020-04-24
      相关资源
      最近更新 更多