Hi guys,

I have a strange problem, in my Ionic app i fetch a RSS feed like this:

.factory('FeedService',['$http',function($http){
    return {
        parseFeed : function(url){
            if (ionic.Platform.isAndroid()) {
                return $http.jsonp(
'//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=50'+
'&callback=JSON_CALLBACK'+'&q=' + encodeURIComponent(url));
            } else {
                return $http.get(
'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=50&q=' + 
encodeURIComponent(url));
            }
        }
    }
}])

It works great when testing with live reload, but as soon as i publish my 
app for betatest or simply remove the -l option, the feed is not fetched 
anymore.

Here's my config.xml security policy

<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 
cdvfile://*; style-src 'self' 'unsafe-inline' cdvfile://* 
https://fonts.googleapis.com fonts.googleapis.com  ajax.googleapis.com; 
script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:* 
http://www.xxxxxx.com www.xxxxxx.com http://feed.informer.com 
feed.informer.com https://ajax.googleapis.com ajax.googleapis.com 
cdvfile://*;">

Any idea ?
thanks a lot

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/828c5d86-c3de-40e9-987f-f8d36b0687bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to