title: AWS EC2 server refusing Ionic/Capacitor/Android connections to PHP files
body: <p>I have recently begun building an Angular Ionic app which connects to  PHP scripts on an AWS EC2 server. Everything works fine except for when I try to connect through Android once the app is built on my phone.</p>
  <p>The response is a simple 404 response with no additional information. When I look at the log on Android Studio I see the following response:</p>
  <blockquote>
  <p>E/Capacitor: Unable to open asset URL: [<em>api address</em>]</p>
  </blockquote>
  <p>I have reduced both the HttpClient call on the frontend and the php file on the backend to their most simple forms and yet still nothing:</p>
  <pre><code>&lt;?php
       echo &quot;Hello&quot;;
  ?&gt;
  </code></pre>
  <p>I know that Capacitor was updated to 3 only a couple of months ago and am concerned that it is related to that. I am using PHP 7.</p>
  <p><strong>UPDATE</strong>
  The issue was indeed <strong>cleartext</strong> but the issue was made more complicated by the fact that HttpClient was not catching the error and so I was simply getting back an unknown failed response.</p>
  <p>In order to first see that it was cleartext I first had to change HttpClient for the Native HTTP plugin and check the logs whilst testing on my phone (HTTP will not work through the browser).</p>
  <p>Only then did I notice that I hadn't changed the config file correctly.</p>