Skip to content

Android downloadFile completely freezes the app #443

@mdrbohlav

Description

@mdrbohlav

When I start downloading large file the app completely freezes.

My config is really simple:

const config = {
  fromUrl: url,
  toFile: path,
  progressDivider: 1,
  begin: ({ contentLength }) => {
    processProgress(contentLength);
  },
  progress: ({ contentLength, bytesWritten }) => {
    processProgress(contentLength, bytesWritten);
  },
};

const task = RNFS.downloadFile(config);

Android: 6.0 and 7.1.1, both emulated with remote debugging on
RN: 0.51.0
RNFS: 2.9.10

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions