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.
Downloaded apk parsing error #394
Open
Description
Version: 0.10.5
async downloadBinary() {
const android = RNFetchBlob.android;
RNFetchBlob
.config({
fileCache: true,
})
.fetch('GET', "http://www.apkmirror.com/wp-content/uploads/uploaded/5937e1ac2dc69/" +
"com.android.chrome_59.0.3071.92-307109200_minAPI16(armeabi-v7a)" +
"(nodpi)_apkmirror.com.apk")
.progress((received, total) => {
let currentProgress = received / total;
this.setState({
progressViewProps: {
visible: true,
progress: currentProgress,
title: `Downloading Update...\n${Math.round(currentProgress * 100)}%`,
indeterminate: currentProgress !== 1
}
});
})
.then((res) => {
android.actionViewIntent(res.path(), 'application/vnd.android.package-archive')
})
}
Tried to download an apk file and opening it, it shows parsing error
I have tried using download manager and it works.