Simple RSS reader

Hi all,
being a 4 days beginner with a long php experience, I’m trying ionic.
So my first test is to make a quick and dirty rss reader.
I got a good angular example here :
and I did some funky stuff to adapt it :smile:
Now I have something that rock on when I try it with ionic serve
but when I build and run on android the feed does not work. Does it handle Internet right in android if I only run ?

Thanks for your reading

PS : my conttrollers

  .controller("FeedCtrl", ['$scope','FeedService', function ($scope,Feed) {
              $scope.feeds =;

      return {
          parseFeed : function(url){
              return $http.jsonp('//' + encodeURIComponent(url));

  .filter('clean', function() {
    return function(input) {
      var myRegex = /<img src="(.+)"><br>/
      var out = myRegex.exec(input);
      return out[1];

PS2 : I also tried to build and emulate on a mac with the same problem… the feed doesn’t load

You may have to disable $sceProvider in your angular config setup.


I did it and it doesn’t change still not loading the feed.
here is the app.js

// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// '' is found in services.js
// 'starter.controllers' is found in controllers.js
angular.module('starter', ['ionic', 'starter.controllers', ''])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
    if(window.StatusBar) {
      // org.apache.cordova.statusbar required

.config(function($stateProvider, $urlRouterProvider, $sceProvider) {


  // Ionic uses AngularUI Router which uses the concept of states
  // Learn more here:
  // Set up the various states which the app can be in.
  // Each state's controller can be found in controllers.js

    // setup an abstract state for the tabs directive
    .state('tab', {
      url: "/tab",
      abstract: true,
      templateUrl: "templates/tabs.html"

    // Each tab has its own nav history stack:

    .state('tab.dash', {
      url: '/dash',
      views: {
        'tab-dash': {
          templateUrl: 'templates/tab-dash.html',
          controller: 'FeedCtrl'

    .state('tab.friends', {
      url: '/friends',
      views: {
        'tab-friends': {
          templateUrl: 'templates/tab-friends.html',
          controller: 'FriendsCtrl'
    .state('tab.friend-detail', {
      url: '/friend/:friendId',
      views: {
        'tab-friends': {
          templateUrl: 'templates/friend-detail.html',
          controller: 'FriendDetailCtrl'

    .state('tab.account', {
      url: '/account',
      views: {
        'tab-account': {
          templateUrl: 'templates/tab-account.html',
          controller: 'AccountCtrl'

  // if none of the above states are matched, use this as the fallback


and the tab dash template :

<ion-view title="Accueil">
<ion-content class="has-header padding">

<div class="list">

    <a class="item item-thumbnail-left" href="{{}}" ng-repeat="feed in feeds | filter:filterText">
      <img src='{{feed.content | clean}}'>



In case it could help to identify my bug.


Hey, It’s been a month, so maybe you already fixed it.
But I had the same problem today so maybe this is nice for future reference.
After wasting hours on obscure fixes, this was the retardely easy fix that made it work for me:

you have to put http:// in front of your feed url. So it becomes this: return $http.jsonp('' + encodeURIComponent(url));

How I can add refresher feature to these script like OP said?