title: Ionic Capacitor - using Cordova plugins
body: <p>I am attempting to use <code>@ionic-native/http</code> on iOS and Web with no success. App starts on both platforms, but the plugin does not work.</p>
  
  <h1>Dependencies</h1>
  
  <ul>
  <li>capacitor: "^1.0.0-beta.19"</li>
  <li>@ionic/angular: "^4.1.0"</li>
  <li>@angular: "^7.2.2"</li>
  <li>@ionic-native: "^5.0.0"</li>
  <li>@ionic/angular-toolkit: "~1.4.0"</li>
  </ul>
  
  <p>I hope that covers the most important ones.</p>
  
  <h1>Steps to reproduce</h1>
  
  <h2>App</h2>
  
  <ol>
  <li><code>ionic start myApp tabs</code></li>
  <li><code>npm install --save @capacitor/cli @capacitor/core</code></li>
  <li><code>npm run build --prod</code></li>
  <li><code>npx cap init &lt;name&gt; &lt;id&gt;</code></li>
  <li><code>npx cap add ios</code></li>
  <li><code>npx cap copy</code></li>
  <li><code>npx cap open ios</code>
  
  <ul>
  <li>general -> signing -> team</li>
  </ul></li>
  </ol>
  
  <h2>Plugin</h2>
  
  <ol>
  <li><code>npm install cordova-plugin-advanced-http</code></li>
  <li><code>npm install @ionic-native/http</code></li>
  <li><code>npx cap sync</code></li>
  <li>Use it as shown in <a href="https://ionicframework.com/docs/native/http#usage" rel="nofollow noreferrer">here</a></li>
  </ol>
  
  <p>According to the <a href="https://capacitor.ionicframework.com/docs/basics/cordova/" rel="nofollow noreferrer">documentation</a> (which I might have misunderstood) that should be it.</p>
  
  <h1>Issues</h1>
  
  <p>When attempting to call an API:</p>
  
  <h2>Web</h2>
  
  <p><code>Native: tried calling HTTP.get, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator</code></p>
  
  <p>I know I don't use Cordova per se but shouldn't it be covered by <code>npx cap sync</code>?</p>
  
  <h2>iOS</h2>
  
  <pre><code>[error] - ERROR {"line":38,"column":38,"sourceURL":"capacitor://localhost/tab2-tab2-module.js"}
  </code></pre>