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.
const fileTransfer = new FileTransfer();
const uri = encodeURI(‘ is available for purchase -’);
const filePath = cordova.file.dataDirectory + ‘file.apk’;
  function(entry) {
    console.log('Download complete: ' + entry.toURL());
  function(error) {
    console.log('Download error: ' + error.source);


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