-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android downloadFile completely freezes the app #443
Comments
At zizzle we use this function to download large files and even show a progressbar at the bottom of the screen, while the user can navigate between different views without and freeze. Seems that something different is causing your issue. |
There is nothing else happening in the moment of the download. But I found for some reason on Android the file size of a specific file is not known (did not check if the header 'content-length' is set but it works fine on iOS) which means the progressDivider has no effect and it sends progress notification each few ms. |
For me, removing my download progress function resolved the freeze on Android. I guess it's because redux keeps updating the state at each progress increment. Sad that android users can't see an actual progress view, but I guess it's cool. |
Option progressDivider do not work if the server does not provide response content length. To reduce the frequency of callbacks, the option progressInterval defines how often the progress is returned, see PR #717 |
When I start downloading large file the app completely freezes.
My config is really simple:
Android: 6.0 and 7.1.1, both emulated with remote debugging on
RN: 0.51.0
RNFS: 2.9.10
The text was updated successfully, but these errors were encountered: