Even if I download the image URL file with the following code, it cannot be viewed in the iPhone's Files and Photos apps. How do I do that?
await cordova.plugin.http.downloadFile(
imageUrl,
{},
{},
cordova.file.documentsDirectory + fileName,
// success callback
function(entry, response) {
console.info(entry.name + ' saved successfully.');
},
// error callback
function(response) {
console.log(response.error);
}
);
At least I can see it in the Files app.