addAndroidDownloads is not work when use self signed cerfication ssl URL,the sharedTrustManager and trusty is open, after delete the config of addAndroidDownloads,it normal operation.
RNFetchBlob
.config({
trusty: true,
addAndroidDownloads: {
useDownloadManager: true,
mime: 'application/vnd.android.package-archive',
path: `${RNFetchBlob.fs.dirs.DownloadDir}/${name}`,
mediaScannable: true,
notification: true
}
})
ReactNativeBlobUtilUtils.sharedTrustManager = object : X509TrustManager {
override fun checkClientTrusted(chain: Array<java.security.cert.X509Certificate>, authType: String) {}
override fun checkServerTrusted(chain: Array<java.security.cert.X509Certificate>, authType: String) {}
override fun getAcceptedIssuers(): Array<java.security.cert.X509Certificate> {
return arrayOf()
}
};