ng-cordova is awesome! I use the downloadFile and it works perfectly. I use it like so:
$cordovaFile.downloadFile(source, ‘cdvfile://localhost/persistent/myFolder/newFile.jpg’, true).then(…)…
But when I use $cordovaFile.checkFile(‘cdvfile://localhost/persistent/myFolder/newFile.jpg’).then(…), it always returns an error. It seems like it doesn’t find the file.
Am I doing it correctly? How do we check for a file using ng-cordova? The docs are sparse but pretty self-explanatory so I’m not sure what else to do. Google Groups on Phonegap don’t mention anything in this light. I’ve been testing different approaches and file/path referencing but nothing seemed to work. Any help would be much appreciated.