Android Download Manager - download happens succesfully but promise rejects #606
Description
The download happens succesfully, even the notification is shown, using code:
const res = await RNFetchBlob.config({
addAndroidDownloads: {
useDownloadManager: true,
mime: mimeType,
description: description || 'File from network',
mediaScannable : true
}
}).fetch('GET', originalUrl, { 'Cookie':cookie });
However promise rejects for some file types (pdf) with: "Error: Download manager could not resolve downloaded file path."
Possible Unhandled Promise Rejection (id: 1):
Error: Download manager could not resolve downloaded file path.
fetch/promise</<@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:97845:23
__invokeCallback@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:2021:7
invokeCallbackAndReturnFlushedQueue/<@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:1845:9
__guard@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:1956:9
invokeCallbackAndReturnFlushedQueue@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:1844:7
onmessage@http://localhost:8081/debuggerWorker.js:72:25
EventHandlerNonNull*@http://localhost:8081/debuggerWorker.js:15:14