Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
VyacheslavBakinskiy
6 years agoHelpful | Level 6
Downloading in the background in iOS (Swift)
Hello, I'm using file download from Dropbox in my app. It works fine when app is active, but if my app goes into the background the download stops. How can I solve it? I use this code to download: ...
- 6 years ago
Hello, Greg!
I have new information regarding my question. On what do you run the code on a real device or on the Xcode simulator? I've always tested on a real device and was getting this issue. I decided to test it on the simulator and was very surprised that the download works fine on it. I also noticed that when I run the code on a real device - I get this issue, but if I then click to download another file, then I'll see that the first file is immediately downloaded, as if it had already been downloaded, but the completion handler didn't work.
What could be the issue? Why does it work fine on the simulator?
P.S. This issue happens only in case when device connected to the PC (Xcode), when I run app without connection to the PC the download works fine.
Greg-DB
Dropbox Community Moderator
6 years agoOk, in that case we'll have to look into it further.
I do still recommend adding some more logging though. The comparison with Google Drive may not be exactly representative since that may use a different mechanism than the Dropbox SDK.
VyacheslavBakinskiy
6 years agoHelpful | Level 6
I tested my application a little more and realized that this problem only occurs when the device is connected to a PC (Xcode), if I disconnect the device from the PC, then the download works fine.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!