I'm working on an Angular Ionic 7 App with capacitor 5. At one page of my app is a list of different files (pdf, txt,csv). The user can select a file and it should download to the device. I tryed to create a Object Url and open it with window.open(fileURL), but nothing happens, also no error. I tryed the library @capacitor/filesystem with downloadFile() Api. The result contins a blob but I'm not able to store it on the device. Does anybody know how to do this?
Filesystem.downloadFile({ path: Directory.Data, url: url, directory: Directory.Data }).then((res) => {
console.log('download finished');
});