$scope.$apply not working for iOS

I am using parse.com as the backend for my app. I have been using the below code to run a user query.

This code works in ionic serve, Android and the iOS emulator. However after deploying the app to an iPhone, the search results just do not load.

Anyone going through the same issue?

Controller code

  var userquery = new Parse.Query(Parse.User);
  userquery.startsWith("username", searchquery);  // Search username
  userquery.limit(20);
  userquery.find({
    success: function(result) {
      $scope.$apply(function() {$scope.people = result;});
    },
    error: function(error) {
      console.log("error");
    }
  });

View Code

<ion-list>
      <ion-item class="item item-icon-right" type="item-text-wrap" ng-repeat="person in people">
          {{person.get('fullname')}}
      </ion-item>
</ion-list>

The same issue persists even if there is no $scope.$apply used.

So if I simply use

success: function(result) {
      $scope.people = result;
    },

iOS does not display the results but it works perfectly fine on ionic serve and android

Please help

I would like to know about this too.