Cordova FileTransfer download not working in iOS

Hi,
I am using FileTransfer plugin for downloading url images. In android the plugin works fine, getting the nativeUrl after downloading the file. But in iOS the plugin is not working.

My code is as follows:

public fileTransfer: FileTransferObject = this.pdfDownload.create();
 ....

   Download(){
        	this.url = 'https:/xxx/xxx/xxx/xxx/xxx';
        	this.target = this.file.dataDirectory + "cover.json";
        	this.fileTransfer.download(this.url,this.target).then((location) => {
        		alert(location.nativeURL);
        	}, err=>{
        		alert(err);
        	});
       }

Is something wrong with code.

Any suggestion is appreciable.

Thanks.

What error messages do you get?

Hi @Nexi ,

I got it working by removing and adding plugin.

Thanks for the response :grinning: