Android $http请求在'之后在Ionic上失败;爱奥尼亚构建安卓系统&x27;

Android $http请求在'之后在Ionic上失败;爱奥尼亚构建安卓系统&x27;,android,angularjs,cordova,ionic-framework,ionic,Android,Angularjs,Cordova,Ionic Framework,Ionic,在开发过程中,我一直在使用ionic serve测试我的应用程序,一切正常。我现在正在尝试使用ionic build android导出apk,然后将文件“android debug.apk”存储在我的web服务器上,通过手机浏览器下载并安装,以便在现实世界中进行测试 应用程序安装正常,但不允许我进行任何$http请求。我已经安装了插件cordova插件白名单,并在我的config.xml文件中添加了以下内容: <plugin name="cordova-plugin-whitel

在开发过程中,我一直在使用ionic serve测试我的应用程序,一切正常。我现在正在尝试使用ionic build android导出apk,然后将文件“android debug.apk”存储在我的web服务器上,通过手机浏览器下载并安装,以便在现实世界中进行测试

应用程序安装正常,但不允许我进行任何$http请求。我已经安装了插件cordova插件白名单,并在我的config.xml文件中添加了以下内容:

    <plugin name="cordova-plugin-whitelist" spec="1" />
      <access origin="*" />
<allow-navigation href="*" />
      <allow-intent href="*" />
      <allow-intent href="http://*/*" />
      <allow-intent href="https://*/*" />
      <allow-intent href="tel:*" />
      <allow-intent href="sms:*" />
      <allow-intent href="mailto:*" />
      <allow-intent href="geo:*" />
      <platform name="android">
          <allow-intent href="market:*" />
      </platform>
      <platform name="ios">
          <allow-intent href="itms:*" />
          <allow-intent href="itms-apps:*" />
      </platform>
启用远程chrome调试后,我收到一个错误警报,后面是一个对象,该对象具有:

data: null,
status: 0,
statusText: ""

看起来我需要补充:

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


进入platforms/android/AndroidManifest.xml。现在工作正常

你可以使用chrome检查混合应用程序,它可以显示错误。将你的手机连接到系统并检查应用程序。我刚刚尝试过,得到的错误是:
POST:http//url.com net::ERR\u CACHE\u MISS
…没有提供更多信息。在网络选项卡中,请求说
(失败)xhr
复制url并尝试通过系统中的postman运行它。看看你是否能得到响应。这可能是相关的:我拥有AndroidManifest.xml中的权限,但仍然失败。还有其他的指示吗?已经2天了,但仍然无法解决问题在我升级(通常是胡闹)cordova版本后发生的问题-可能是cordova 7中添加了该声明?做“cordova平台删除android”然后“cordova平台添加android”为我正确地修复了它。。。
data: null,
status: 0,
statusText: ""
<uses-permission android:name="android.permission.INTERNET" />