Greetings
Been stuck on this for awhile now and hoping someone could assist me in some way. Here’s what I have so far.
Ionic Version: 1.3.20
Cordova Version: 5.0.0
Xiaomi Version: 4.4.4
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="21" />
As for my codes, here is a snippet of what’s going on. I’m doing a simple http request to a PHP server(Laravel) to retrieve the version.
Info.getVersion().then(
function(data){
var result = angular.fromJson(data);
if( result.status )
{
if( version != result.version )
$rootScope.updateApp();
}
},
function(error){
$rootScope.handleError( error );
}
);
Note: $rootScope.handleError shows an $ionicPopup
Currently, I’m getting a Failed to load resource: the server responded with a status of 404 (Not Found) when looking at Device Debugger on Google Chrome.
I also understand that the AndroidManifest.xml should have the following:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
As I run ionic build android there were no issues reported by Ionic CLI
When I open the app, it just keeps giving me the 404 error and I’m suspecting it could be that I do not have connection within my app
P.S. I do have connection on the browser and other apps.