We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Jean-Baptiste D2
11 years agoNew member | Level 1
[DBRestClient] uploadFile: doesn't prevent my app from being killed in background
[Re-posting it here, since I think I posted it in the wrong category earlier, sorry for that]
Hello,
I'm using Dropbox SDK to upload a file after my app is awakened by iOS through a Silent No...
Greg-DB
Dropbox Community Moderator
11 years ago[Thanks for reposting. The API development forum is the right one for anything API related. The "Bugs & Troubleshooting" forum is more about the Dropbox product itself. I've deleted your other post so we can consolidate here.]
Anyway, the Dropbox iOS Core SDK doesn't use NSURLSession. It's a wrapper around the HTTP endpoints that uses NSURLRequest, so you'll need to configure any background functionality as necessary for your app in your app code. (The iOS Core SDK is open source though, so alternatively you could add the source directly and modify it as desired instead.) We don't we have any sample code for this in particular however.
We'll consider this a feature request though. Also, I believe our new SwiftyDropbox library, for the Dropbox API v2, currently in preview, does use NSURLSession via AlamoFire.
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!