Is there any way to download a file from the internet (png) and save it to the camera roll? I was looking at $cordovaFile and it looks like what I need:
// parameters: source, filePath, trust all hosts (boolean), options
$cordovaFile
.downloadFile(source, filePath, true, options)
.then(function(result) {
// Success!
}, function(err) {
// Error
}, function (progress) {
// constant progress updates
});
but how do I actually get my filePath
?