JSON data is not displaying only in mobile devices

I am new to Ionic framework, I am using php-mysql as backend. The problem is when I run the ionic serve --lab command, the data is successfully fetched from mysql and displayed in Android and Ios, but when I execute the ionic serve command, only the json data is not displaying in Real devices ('m using Iphone 6), the rest template is working. Need Help ! Stuck here :confused:

JSON DATA LINK:
http://www.w3schools.com/angular/customers_mysql.php

JS:

app.controller(‘ExtensionsCtrl’, function ($scope, $http) {
$http.get(“http://www.w3schools.com/angular/customers_mysql.php”)
.then(function (response) {$scope.names = response.data.records;});
});