Skip to content
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
@booker-laputa

Description

@booker-laputa

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions