Hello Guyz,
Please take a look into this code:
$cordovaFile.checkFile(filePath, fileName)
.then(function () {
console.log('Success File Present: ' + targetFilePath);
//$ionicLoading.hide();
$http.get(targetFilePath + "?" + new Date(), { cache: false }).success(successCb);
}, function (error) {
console.log("Error Occured: " + JSON.stringify(error));
console.log("Initiating Download...");
doit();
});
After the cordova file plugin us able to identify .JSON file in system $http reads it and it works just fine in android but in iOS simulators it stops @ 'Success File Present
Please help…