You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/01 07:41:10 UTC

[GitHub] [cordova-plugin-file-transfer] codafish-gmbh commented on issue #203: fileTransfer.download from https return error code 3 (SSL handshake) in android

codafish-gmbh commented on issue #203:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/203#issuecomment-636670446


   We use file-transfer with Ionic and Capacitor:
   
   ```
       "cordova-plugin-file-transfer": "^1.7.1",
       "@ionic-native/file-transfer": "^5.26.0",
   ```
   
   Unfortunately, the method download() on Android devices always results in the exception FileTransferError.CONNECTION_ERR:
   
   ```
               const timeStamp = (Date.now() / 1000).toString();
               url = url + '&cacheBuster=' + timeStamp;
               url = encodeURI(url);
               const transfer = this.transfer.create();
               transfer.download(url, localPath).then(entry => {
                   const localUrl = entry.toURL();
                   this.openFile(localUrl);
                   this.pageDataService.setLoadingStatus(false);
               }, (err) => {
                   const error = JSON.stringify(err);
                   console.log(url);
                   this.pageDataService.setLoadingStatus(false);
                   mobiscroll.snackbar({
                       color: 'danger',
                       message: error
                   });
               });
   ```
   
   We also tried to apply the patch of @wynngd without any success. On iOS devices, the plugin works like a charm.
   
   Is there any chance, that this issue gets fixed?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org