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>