Skip to content

PDF Loading progress is stuck at 0 percentage #995

@arunnambissan

Description

@arunnambissan

I am testing on Android. When a PDF file is opened, the progress value is stuck at 0, and it loads the PDF after a few seconds. I am using an HTTPS URL.
Sample URL: https://<file-url>/content?access_token=<access-token>

If I use the rn-fetch-blob package instead of react-native-blob-util, the progress is shown. Tested by changing the import in react-native-pdf/index.js:

import ReactNativeBlobUtil from 'rn-fetch-blob'

I doubt the issue is related to this - RonRadtke/react-native-blob-util#235,
But if I set useDownloadManager to true as given below in react-native-pdf/index.js, the progress is shown, but it gets stuck at the end and does not load the PDF.

this.lastRNBFTask = ReactNativeBlobUtil.config({
    // response data will be saved to this path if it has access right.
    path: tempCacheFile,
    trusty: this.props.trustAllCerts,
    addAndroidDownloads: {
        useDownloadManager: true
    }
})

Note

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions