We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
VyacheslavBakinskiy
5 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: ...
- 5 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 Staff
Ok, 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
5 years agoHelpful | Level 6
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-DB5 years agoDropbox Staff
I've been testing on a physical device. I've also had it connected to my computer though, to receive the output in Xcode. I'm not sure why that would interfere in your case, but I'm glad to hear it is working for you otherwise.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 2 hours agoIf 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 or Facebook.
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!