1
I have an Ionic page that makes request for a page in codeigniter, I send the data and receive correctly, no problems in the browser, but when I turn into . apk and I run the application on the phone until it runs but any button you have makes an http request does not work, someone knows why?
Post how you implemented these calls in a minimal scenario to facilitate analysis and possibly a response.
– Ismael
My code in angular js: $http.get("http://localhost/index.php/Homecontroller/listing"). Success(Function(data,status){ $Scope.listing = data; }). error(Function(data,status){ console.log("error"); I receive this data and step to an ng-controller, but when running on the web browser I tried to fix the settings in the app.js to accept : $httpProvider.defaults.headers.common = {}; $httpProvider.defaults.headers.post = {}; $httpProvider.defaults.headers.put = {}; $httpProvider.defaults.headers.patch = {};
– rods