Help please, I have a problem, my cell phone does not do anything when I press the button, any ideas? neither show the error message

download() {
    var fileTransfer: TransferObject = this.transfer.create();
  const url = 'https://blablabla";
    fileTransfer.download(url, this.file.dataDirectory + 'file.pdf').then((entry) => {
      let alert = this.alertCtrl.create({
            message: "entro we",
            buttons: [
              {
                text: "Ok",
                role: 'cancel'
              }
            ]
          });
          alert.present();
  }, (error) => {
    let alert = this.alertCtrl.create({
            message: error.message,
            buttons: [
              {
                text: "Ok",
                role: 'cancel'
              }
            ]
          });
          alert.present();
    // handle error
  });
}

Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.