Please help. I need to download a server-side file from my mobile application(meteor-cordova). For that i user a plugin 'cordova-plugin-file-transfer' but it is not working

This is the function i tried.
downloadFile(){
const fileTransfer = new FileTransfer();
const uri = encodeURI(‘yourdomain.com is available for purchase - Sedo.com’);
const filePath = cordova.file.dataDirectory + ‘file.apk’;

fileTransfer.download(
  uri,
  filePath,
  function(entry) {
    console.log('Download complete: ' + entry.toURL());
  },
  function(error) {
    console.log('Download error: ' + error.source);
  }
);

}

And it return RefereceError: FileTransfer() is not defined.