Ionic - iOS vs Android request
<p>A request that I know is safe and sound in iOS and Chrome (<code>ionic serve</code>), yet fails on the Android emulator and a droid device by jumping into the <code>error</code> bracket</p>

<pre><code>    var requestURL = 'http://myURL/stuff/doStuff.php?a=' + encodeURIComponent(a)+ '&amp;b=' + encodeURIComponent(b);

    $http.get(requestURL).success(function (results) {
        deferred.resolve(results);
    }).error(function(data, status, headers, config) {
        console.log(data);
        console.log(status);
        console.log(headers);
        deferred.reject(data);
    });
</code></pre>

<p>I checked through the debugger and the <code>requestURL</code> is fine.
The php sends a JSON header which is parsed by iOS and Chrome, so I do not quite get why it fails.</p>

<p>Edit:
I checked the server logs and the server is not getting any requests. It used to work, and I am not aware of any change to the android build settings that I would have made on purpose. iOS still does the job and I have </p>

<pre><code>&lt;uses-permission android:name="android.permission.INTERNET"/&gt;
</code></pre>

<p>enabled.I think there must be something wrong with other permissions of the APK or something similar... Any idea where I could dig?</p>