-
Notifications
You must be signed in to change notification settings - Fork 791
Adding iOS background download/upload support #50
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
Conversation
Adding background upload/download support
Adding background uploading/downloading functionality
Fixing progress handler for downloading (totalBytesWritten / totalBytesExpectedToWrite)
Adding IOSDownloadTask and IOSUploadTask documentation for background downloading/uploading on iOS
Adding table of content item to iOS background downloading/uploading
Fixing closing file handle once completed (otherwise, can't be opened until app is killed/reopened)
Is there any update on the status of this PR? This issue definitely reduces the usefulness of this library. |
we've just merged the 0.10.9 branch into master as that was the active development branch before. We'll need to resolve merge conflicts to get move forward with this PR. |
This would be really useful!!! |
Would love to switch to this branch when the conflicts are resolved. |
@Traviskn what is now?this PR. really need it。 |
@jamninetyfive this PR has merge conflicts that need to be resolved. Anyone who needs this PR is welcome to fork @tmaly1980's repo, resolve the conflicts, and re-open the PR. Or perhaps submit a PR of your own! |
Sorry to bring this up, but is IOSBackgroundTask actually working? Looks like it was never resolved, even if it says merged. |
Hi, guys! |
Hi, while uploading data to server, if application is moved to background and again brining back to foreground RNFetchBlob callbacks are not getting called and showing loading continuously. can anyone help me to fix this issue Thanks |
This adds IOSDownloadTask and IOSUploadTask options so we can transfer files when the app is in the background. Otherwise, the file transfer is halted when not in the foreground and a "Lost connection to background transfer service" error is thrown when the app is resumed.
Borrowed most of the code from #20 , but the progress handler for downloads needed fixing. Also needed to comment out the references to AppDelegate as I wasn't sure how to get that working.