This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Android, download a apk form S3, but get a bin #391
Open
Description
Hi, I am using
RNFetchBlob.config({
addAndroidDownloads : {
useDownloadManager : true,
notification : true,
mediaScannable : true,
mime : 'application/vnd.android.package-archive',
description : ' downloaded by download manager.'
}
}).fetch('GET', gotURL)
.then((res) => {
// the conversion is done in native code
console.log('The file saved to ', res.path());
let sendIntent = RNFetchBlob.android.actionViewIntent;
sendIntent(res.path(), 'application/vnd.android.package-archive');
})
// Status code is not 200
.catch((errorMessage, statusCode) => {
// error handling
})
and download can be processed, but I do not why it is always get a file called 'downloadfile.bin', my file is on the AWS S3, it seems cannot fetch the correct file name from S3 Pre-signedURL?
Please.