title: Angular http client not working on ios device Ionic3
body: <p>i need some help with my ionic projet.
  I use Youtube Api to get a video Id and then open the video with InAppBrowser plugin. </p>
  
  <p>It's works with my browser and the ionic dev app. But not when i build my ipa file and run it on my ios device. </p>
  
  <p>My configuration : </p>
  
  <pre><code>Ionic:
  
     ionic (Ionic CLI)  : 4.7.1 (/usr/local/lib/node_modules/ionic)
     Ionic Framework    : ionic-angular 3.9.2
     @ionic/app-scripts : 3.2.1
  
  Cordova:
  
     cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
     Cordova Platforms     : ios 4.5.5
     Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 9 other plugins)
  
  System:
  
     ios-deploy : 1.9.4
     NodeJS     : v10.15.0 (/usr/local/bin/node)
     npm        : 6.4.1
     OS         : macOS Mojave
     Xcode      : Xcode 10.1 Build version 10B61
  </code></pre>
  
  <p>My provider : </p>
  
  <pre><code>public fetchTrailer(mediaTitle: string) {
      console.log("IN FETCH");
  
      let searchText: string = mediaTitle + " bande annonce";
      let url: string = YOUTUBE_API_URL +"search?maxResult=" +"1" +"&amp;key=" +YOUTUBE_API_KEY +"&amp;part=snippet&amp;q=" +searchText;
      console.log("URL " + url);
      return new Promise (resolve =&gt; {
        this.http
        .get(
          YOUTUBE_API_URL +
          "search?maxResult=" +
          "1" +
          "&amp;key=" +
          YOUTUBE_API_KEY +
          "&amp;part=snippet&amp;q=" +
          searchText
        ).subscribe(
          data =&gt; {
            resolve(data);
        },
        err =&gt; {
          console.log(err);
        }
        );
      });
    }
  </code></pre>
  
  <p>Xcode console error : </p>
  
  <pre><code>{"headers":{"normalizedNames":{},"lazyUpdate":null,"headers":{}},"status":0,"statusText":"Unknown Error","url":null,"ok":false,"name":"HttpErrorResponse","message":"Http failure response for (unknown url): 0 Unknown Error","error":{"isTrusted":true}}
  </code></pre>
  
  <p>Config.xml :</p>
  
  <pre><code> &lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;MyApp&lt;/name&gt;
      &lt;description&gt;An awesome Ionic/Cordova app.&lt;/description&gt;
      &lt;author email="hi@ionicframework" href="http://ionicframework.com/"&gt;Ionic Framework Team&lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
      &lt;allow-intent href="http://*/*" /&gt;
      &lt;allow-intent href="https://*/*" /&gt;
      &lt;allow-intent href="tel:*" /&gt;
      &lt;allow-intent href="sms:*" /&gt;
      &lt;allow-intent href="mailto:*" /&gt;
      &lt;allow-intent href="geo:*" /&gt;
      &lt;preference name="ScrollEnabled" value="false" /&gt;
      &lt;preference name="android-minSdkVersion" value="19" /&gt;
      &lt;preference name="BackupWebStorage" value="none" /&gt;
      &lt;preference name="SplashMaintainAspectRatio" value="true" /&gt;
      &lt;preference name="FadeSplashScreenDuration" value="300" /&gt;
      &lt;preference name="SplashShowOnlyFirstTime" value="false" /&gt;
      &lt;preference name="SplashScreen" value="screen" /&gt;
      &lt;preference name="SplashScreenDelay" value="3000" /&gt;
      &lt;platform name="android"&gt;
          &lt;allow-intent href="market:*" /&gt;
          &lt;preference name="YouTubeDataApiKey" value="SECRET" /&gt;
          &lt;icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" /&gt;
          &lt;icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" /&gt;
          &lt;icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" /&gt;
          &lt;icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" /&gt;
          &lt;icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" /&gt;
          &lt;icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" /&gt;
          &lt;splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" /&gt;
          &lt;splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" /&gt;
          &lt;splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" /&gt;
          &lt;splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" /&gt;
          &lt;splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" /&gt;
          &lt;splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" /&gt;
          &lt;splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" /&gt;
          &lt;splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" /&gt;
          &lt;splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" /&gt;
          &lt;splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" /&gt;
          &lt;splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" /&gt;
          &lt;splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" /&gt;
      &lt;/platform&gt;
      &lt;platform name="ios"&gt;
          &lt;allow-intent href="itms:*" /&gt;
          &lt;allow-intent href="itms-apps:*" /&gt;
          &lt;allow-navigation href="*" /&gt;
          &lt;icon height="57" src="resources/ios/icon/icon.png" width="57" /&gt;
          &lt;icon height="114" src="resources/ios/icon/icon@2x.png" width="114" /&gt;
          &lt;icon height="40" src="resources/ios/icon/icon-40.png" width="40" /&gt;
          &lt;icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" /&gt;
          &lt;icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" /&gt;
          &lt;icon height="50" src="resources/ios/icon/icon-50.png" width="50" /&gt;
          &lt;icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" /&gt;
          &lt;icon height="60" src="resources/ios/icon/icon-60.png" width="60" /&gt;
          &lt;icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" /&gt;
          &lt;icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" /&gt;
          &lt;icon height="72" src="resources/ios/icon/icon-72.png" width="72" /&gt;
          &lt;icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" /&gt;
          &lt;icon height="76" src="resources/ios/icon/icon-76.png" width="76" /&gt;
          &lt;icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" /&gt;
          &lt;icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" /&gt;
          &lt;icon height="29" src="resources/ios/icon/icon-small.png" width="29" /&gt;
          &lt;icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" /&gt;
          &lt;icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" /&gt;
          &lt;icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" /&gt;
          &lt;splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" /&gt;
          &lt;splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" /&gt;
          &lt;splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" /&gt;
          &lt;splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" /&gt;
          &lt;splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" /&gt;
          &lt;splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" /&gt;
          &lt;splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" /&gt;
          &lt;splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" /&gt;
          &lt;splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" /&gt;
          &lt;splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" /&gt;
          &lt;splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" /&gt;
          &lt;splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" /&gt;
          &lt;splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" /&gt;
      &lt;/platform&gt;
      &lt;plugin name="cordova-sqlite-storage" spec="3.0.0" /&gt;
      &lt;plugin name="cordova-plugin-x-socialsharing" spec="5.4.4" /&gt;
      &lt;plugin name="cordova-plugin-whitelist" spec="1.3.3" /&gt;
      &lt;plugin name="cordova-plugin-statusbar" spec="2.4.2" /&gt;
      &lt;plugin name="cordova-plugin-device" spec="2.0.2" /&gt;
      &lt;plugin name="cordova-plugin-splashscreen" spec="5.0.2" /&gt;
      &lt;plugin name="cordova-plugin-ionic-webview" spec="^3.0.0" /&gt;
      &lt;plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" /&gt;
      &lt;plugin name="cordova-plugin-inappbrowser" spec="3.0.0" /&gt;
      &lt;plugin name="cordova-plugin-screen-orientation" spec="3.0.1" /&gt;
      &lt;engine name="ios" spec="4.5.5" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>Thanks a lot</p>