I have a service on my Ionic application that work fine in an Iphone4 with IOS7 but now I updated to IOS8.3 and don't work...
The problem is that no result (success or error) is returned.
This issue is only on real device with IOS8.3 (on Xcode simulator works fine). And also still working fine on old Iphone4 with IOS7.1.2
var appServices = angular.module('app.services', []);
appServices.factory('GetJsonData', function ($http, $q) {
return {
query: function () {
var url = 'http://dummy-url-to-file.json';
var data = $http.get(url);
var deferred = $q.defer();
deferred.resolve(data);
return deferred.promise;
}
}
});
I also test with a very simple code in a controller, and neither work
$http.get('http://dummy-url-to-file.json').then(function(data) {
alert("ok!");
})
I have installed the cordova-white-list plugin, and is well configured... so the code works fine until the last ios8.3 Apple update.
I check the requests on the server, and I check de .log file
On IPhone4 with IOS7.1.2 the request is done fine. This is the log:
xx.xxx.xxx.xxx - - [15/Jun/2015:18:09:40 +0200] "GET /xxxxxxxx.json HTTP/1.1" 200 8147 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Mobile/11D257 (374711760)"
(I change the real ip and the real url from the log ;)
On the Xcode simulator with Iphone5s IOS8.3 also make the request fine..
xx.xxx.xxx.xxx - - [15/Jun/2015:18:16:27 +0200] "GET /xxxxxxxx.json HTTP/1.1" 200 8147 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12F69 (140445320620576)"
But on a real Iphone5 with IOS8.3 the request is not called to the server, and not log is created... :(