cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Dropbox iOS Core SDK - How to continue downloads in background or when the screen is locked?

New member | Level 1
New member | Level 1

The download stops in iOS [Core SDK] when the screen is locked or when the app is inactive. As per iOS standards, the download should continue up to 10 minutes and NSURLSession takes care of it. But in iOS Core SDK, the download stops as soon as the screen is locked. If I use BackgroundTaskIdentifier, this problem is solved. Can you please help me with this? Is there any other solution for this?

2 Replies 2
Highlighted

Re: Dropbox iOS Core SDK - How to continue downloads in background or when the screen is locked?

Dropboxer
Dropboxer

Unfortunately, the Dropbox iOS Core SDK doesn't provide any background support for you. It's mainly just a wrapper around calling the Core API HTTP endpoints. It also doesn't use NSURLSession. That being the case, if you need background support you'll need to implement that into your app using Apple's standard background task APIs, as you mentioned:

https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Bac...

I don't believe we have any samples available that do that with the iOS Core SDK though.

Sorry I don't have any better resources available for you, but I'll pass this along as a feature request.

 

Highlighted

Re: Dropbox iOS Core SDK - How to continue downloads in background or when the screen is locked?

New member | Level 1
New member | Level 1

thanks @Gregory.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?