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

[iOS] missing file when completing download #278

Closed
781flyingdutchman opened this issue Apr 9, 2020 · 2 comments
Closed

[iOS] missing file when completing download #278

781flyingdutchman opened this issue Apr 9, 2020 · 2 comments

Comments

@781flyingdutchman
Copy link
Contributor

I use the downloader to download thousands of small files, and on iOS run into an issue where the download completes successfully (and notifies the app as such), yet the downloaded file isn't there. Right now I simply do a check upon download completion and reschedule the download if the file isn't there, but it's obviously not what the downloader 'contract' states. This issue does not exist on Android.

I build my iOS app via CodeMagic, so I cannot debug iOS very well, and therefore don't really understand where this is going wrong (the code looks fine to me).

@hnvn
Copy link
Member

hnvn commented Apr 10, 2020

There's a problem in iOS that the NSDocument path changes every times the application relaunch. I guess it maybe lead to you issue
https://stackoverflow.com/questions/47864143/document-directory-path-change-when-rebuild-application

@781flyingdutchman
Copy link
Contributor Author

Pull request #277 is my proposed solution (store only the relative portion of the savedDir on iOS), but it does introduce behavior that's different between iOS and Android, unless we introduce the same change there. However, that change still doesn't resolve this issue. We need someone to test why this is happening on an iOS device in debug mode (I can't do that)

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

3 participants