download() {
const url = 'https://figurable-jack.000webhostapp.com/songs/Kaalam_Yen_Kadhali-StarMusiQ.Com.mp3';
this.fileTransfer.download(url, this.file.dataDirectory + 'Kaalam_Yen_Kadhali-StarMusiQ.Com.mp3',true).then((entry) => {
console.log('download complete: ' + entry.toURL());
}, (error) => {
alert("Server Down");
});
}
I am trying to download a file from a serve.https://figurable-jack.000webhostapp.com/songs/Kaalam_Yen_Kadhali-StarMusiQ.Com.mp3
The file is not downloading, it shows the error.
I would like it know if their any thing that i missed.
Or any mistake in my code.
Thanking you.