Hello everyone, I did an application that retrieves information from the web with the $http.get()
function. The code is the same for the two platforms: Android and iOS, but the iOS version doesn’t update as the remote file is updated.
The code is this:
var eventi = [{id: 0, name: 'fetching news', data: '00/00/0000', detail: 'waiting'}];
$http.get('http://www.sevotec.it/eventirossano.php').success(function(data) {
eventi = data;
}).error(function(error) {
console.log(error);
eventi = [{id: 0, name: 'Can't get news', data: ' ', place: ' ', content: "Some content"}];
});
Working fine on Android; not working on iOS.