Phonegap / Cordova access local file on internal storage

This script enable you to access local file in the root of your internal storage.

$http.get(‘cdvfile://localhost/persistent/mobeeshop.json’)
.success(function(data) {
   $scope.frontpage = data;
}).
error(function(data){
   $scope.frontpage = data;
});

Leave a Reply

Your email address will not be published. Required fields are marked *