Skip to content
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

download returns Error: "The operation couldn’t be completed. Software caused connection abort" #350

Open
schumannd opened this issue Apr 24, 2019 · 6 comments

Comments

@schumannd
Copy link

schumannd commented Apr 24, 2019

Any Idea what could cause this?

@jon-moreira
Copy link

Same problem here!

When starting download file, send the app to background and open app again i get this error message.

This error only happens when using the flight test application or production mode! When I try to debug using the emulator, this error does not appear!

@tuanmai
Copy link

tuanmai commented Jun 3, 2019

From my investigation:
This issue happens on iOS 12. The scenario is

  • App fetches API in the background
  • App changes the state to Background
  • App changes state back to Frontground
  • Issue raises.
    The reason is on iOS 12, the error code changed from -1005(ios 11) to 53 (ios 12) so the lib we use haven't handled that.

Refs:
https://stackoverflow.com/questions/54902181/alamofire-error-operation-couldnt-be-completed-software-caused-connection-abo
https://forums.developer.apple.com/thread/106838

@schumannd
Copy link
Author

@tuanmai great work tracking down the problem! Do you know which native library exactly should be handling the error? Maybe we can fix the issue there.

@TfADrama
Copy link

Someone knows a library that works on background for ios?

@bargald
Copy link

bargald commented Dec 18, 2019

Someone knows a library that works on background for ios?

I think RNFS can

@schumannd
Copy link
Author

I tried switching to RNFS once, but it cannot handle parallel downloads well and I experienced issues with very slow downloads overall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants