Hi,
I have a problem with loading rss-news on app-startup. On android everything works fine, but on iOs the $http.get
seems to cause the app to freeze and become unresponsive until it is closed.
This only seems to happen sometimes, and I can’t find a specific reason for it. I already stripped the code down to the minimum, so only the $http.get
gets called and no caching is done, but the same issue still occurs.
Im calling the init function is a ionic.Platform.ready
. Am I doing something wrong?
My code:
.controller("FeedController", function ($http, $scope, $rootScope, $filter, $timeout) {
$scope.init = function () {
console.log("Init called");
$http.get("https://ajax.googleapis.com/ajax/services/feed/load", { params: { "v": "1.0", "q": "https://example.com/rssFeed", "num": "50" } });
}
ionic.Platform.ready(function(){
$scope.init();
});
});