title: Ionic infinite scroll doesn't work on all android devices
body: <p>I'm currently developing an ionic app and successfully implemented an infinite scroll feature. It works fine on desktop browsers and newer android devices, however, i'm having problems with phones that run android version 4.1 or less.</p>
  
  <p><strong>The problem:</strong></p>
  
  <p>I open the page, it loads and displays the first 20 items just fine, i scroll to the bottom, the next 20 items load, but it doesn't let me scroll any further to see the next 20 items.</p>
  
  <p>Here is a GIF showing how it looks on my desktop (the way it's supposed to work). <strong><a href="https://i.stack.imgur.com/l9HMr.gif" rel="nofollow noreferrer">desktop gif</a></strong></p>
  
  <p>Here is another GIF showing how it looks on my xperia phone (note how it doesn't let me scroll further on newly loaded items). <strong><a href="https://i.stack.imgur.com/dHmAu.gif" rel="nofollow noreferrer">xperia gif</a></strong></p>
  
  <p>However, when i refresh the page, or turn the phone into landscape mode after the next 20 items loaded, the scrolling works just fine so it seems like the phone doesn't know that the screen height changed when the new items loaded so i thought i could get it fixed by simply adding  <code>$ionicScrollDelegate.resize();</code>  to tell the view to recalculate the size of its container, but that doesn't seem to fix it either.</p>
  
  <p><strong>Here is my JavaScript code:</strong></p>
  
  <pre><code>.controller('TestCtrl', ['$scope', '$http', function($scope, $http) {
     $scope.items = [];
     $scope.page = 1;
     $scope.totalPages = 1;
  
  
     $scope.loadMore = function() {
       if ($scope.page &lt;= $scope.totalPages) {
         $http.get('http://localhost/test/recent/' + $scope.page).success(function(items) {
           var i = items.data.length;
           $scope.totalPages = items.pages;
           $scope.items = $scope.items.concat(items.data);
  
           $scope.$broadcast('scroll.infiniteScrollComplete');
  
           $scope.page = $scope.page + 1;
           if ($scope.page == $scope.totalPages + 1) {
             $scope.noMoreItemsAvailable = true;
           }
         });
       }
     }
   }])
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;ion-view view-title="Hello Stackoverflow"&gt;
    &lt;ion-content&gt;
  
      &lt;a class="item" ng-repeat="item in items"&gt;
          {{item.title}}
          &lt;span class="item-note"&gt;
              {{ item.timestamp | myDate }}
          &lt;/span&gt;
      &lt;/a&gt;
  
      &lt;ion-infinite-scroll ng-if="!noMoreItemsAvailable" on-infinite="loadMore()" distance="10%"&gt;&lt;/ion-infinite-scroll&gt;
    &lt;/ion-content&gt;
  &lt;/ion-view&gt;
  </code></pre>
  
  <p>I've been stuck with this problem for2 days, googled for hours and tried many different things, but i couldn't find anything that fixed it.</p>