title: Android 9 failed to connect to OData in Fiori APP and Cordova
body: <p>I'm facing some problems with an app with Fiori and embebed with Cordova. I made the app without any problems. I configured everything, imported the APK and works fine when I simulate it in Android Studio in the versions: 5.1 and 8.1. When I tried to work with android 9.0 it doesn't comunicate properly with the backend (SAP) and the OData refused to connect. Even when I use the same OData url, user and password than in the other versions of android.</p>
  <p>My set:</p>
  <ul>
  <li>Java 1.8.0</li>
  <li>Android Studio</li>
  <li>Android SDK (5.1, 8.1, 9.0)</li>
  <li>NodeJS v16.0.0</li>
  <li>Apache Cordova 8.1.2</li>
  </ul>
  <p>My config.xml</p>
  <pre><code>    &lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id=&quot;com.sap.myui5&quot; version=&quot;1.0.0&quot; xmlns=&quot;http://www.w3.org/ns/widgets&quot; xmlns:cdv=&quot;http://cordova.apache.org/ns/1.0&quot;&gt;
      &lt;name&gt;XXXX-XXXXX&lt;/name&gt;
      &lt;description&gt;
          Application hybrida para la preparación de pedidos online de XXX, soportada por Apache Cordova y SAPUI5.
      &lt;/description&gt;
      &lt;author email=&quot;dev@cordova.apache.org&quot; href=&quot;http://cordova.io&quot;&gt;
          Apache Cordova Team
      &lt;/author&gt;
      &lt;content src=&quot;index.html&quot; /&gt;
      &lt;access origin=&quot;*&quot; /&gt;
      &lt;allow-intent href=&quot;http://*/*&quot; /&gt;
      &lt;allow-intent href=&quot;https://*/*&quot; /&gt;
      &lt;allow-intent href=&quot;tel:*&quot; /&gt;
      &lt;allow-intent href=&quot;sms:*&quot; /&gt;
      &lt;allow-intent href=&quot;mailto:*&quot; /&gt;
      &lt;allow-intent href=&quot;geo:*&quot; /&gt;
      &lt;platform name=&quot;android&quot;&gt;
          &lt;allow-intent href=&quot;market:*&quot; /&gt;
          &lt;preference name=&quot;android-minSdkVersion&quot; value=&quot;22&quot; /&gt;
          &lt;preference name=&quot;android-targetSdkVersion&quot; value=&quot;29&quot; /&gt;
          &lt;icon density=&quot;ldpi&quot; src=&quot;res/android/ldpi.png&quot; /&gt;
          &lt;icon density=&quot;mdpi&quot; src=&quot;res/android/mdpi.png&quot; /&gt;
          &lt;icon density=&quot;hdpi&quot; src=&quot;res/android/hdpi.png&quot; /&gt;
          &lt;icon density=&quot;xhdpi&quot; src=&quot;res/android/xhdpi.png&quot; /&gt;
      &lt;/platform&gt;
      &lt;platform name=&quot;ios&quot;&gt;
          &lt;allow-intent href=&quot;itms:*&quot; /&gt;
          &lt;allow-intent href=&quot;itms-apps:*&quot; /&gt;
      &lt;/platform&gt;
      &lt;plugin name=&quot;cordova-plugin-keyboard&quot; spec=&quot;^1.2.0&quot; /&gt;
      &lt;plugin name=&quot;cordova-android-support-gradle-release&quot; spec=&quot;^3.0.1&quot;&gt;
          &lt;variable name=&quot;ANDROID_SUPPORT_VERSION&quot; value=&quot;22.+&quot; /&gt;
      &lt;/plugin&gt;
      &lt;engine name=&quot;android&quot; spec=&quot;~9.0.0&quot; /&gt;
  &lt;/widget&gt;
  </code></pre>
  <p>Also my package.json:</p>
  <pre><code>    {
    &quot;name&quot;: &quot;com.sap.myui5&quot;,
    &quot;displayName&quot;: &quot;MyUi5App&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;A sample Apache Cordova application that responds to the deviceready event.&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
    },
    &quot;keywords&quot;: [
      &quot;ecosystem:cordova&quot;
    ],
    &quot;author&quot;: &quot;Apache Cordova Team&quot;,
    &quot;license&quot;: &quot;Apache-2.0&quot;,
    &quot;devDependencies&quot;: {
      &quot;cordova-android&quot;: &quot;^9.0.0&quot;,
      &quot;cordova-android-support-gradle-release&quot;: &quot;^3.0.1&quot;,
      &quot;cordova-plugin-android-permissions&quot;: &quot;^1.1.3&quot;,
      &quot;cordova-plugin-keyboard&quot;: &quot;^1.2.0&quot;,
      &quot;cordova-plugin-whitelist&quot;: &quot;^1.3.5&quot;
    },
    &quot;cordova&quot;: {
      &quot;plugins&quot;: {
        &quot;cordova-plugin-whitelist&quot;: {},
        &quot;cordova-plugin-keyboard&quot;: {},
        &quot;cordova-android-support-gradle-release&quot;: {
          &quot;ANDROID_SUPPORT_VERSION&quot;: &quot;21.+&quot;
        },
        &quot;cordova-plugin-android-permissions&quot;: {}
      },
      &quot;platforms&quot;: [
        &quot;android&quot;
      ]
    },
    &quot;dependencies&quot;: {
      &quot;cordova-android&quot;: &quot;~9.0.0&quot;
    }
  }
  </code></pre>
  <p>I don't know where the error is. I have set the minSdkVersion and targetSdkVersion in the config.xml, also the dependencies for android 9.0. Could be that the android permissions failed in the android version 9?</p>
  <blockquote>
  <p>&quot;cordova-plugin-android-permissions&quot;: &quot;^1.1.3&quot;</p>
  </blockquote>
  <p>Thanks for any help.</p>