objective c - Dropbox file downloading is not working when iOS application is goes to Background or screen locked? -


i integrated dropboxsdk [core api] in application. can able view contents through application , can able download. problem is, when press home button or locked idevice download canceled.

and showing error this.

"[warning] dropboxsdk: error making request /1/files/dropbox/shadow 30s_mpeg4.mp4 - (1002) error domain=dropbox.com code=1002 operation couldn’t completed. (dropbox.com error 1002.)" userinfo=0x1681f2b0 {path=/shadow 30s_mpeg4.mp4, destinationpath=/var/mobile/applications/728071a1-1bb9-481d-a3fe-07c791397568/documents/shadow 30s_mpeg4.mp4}..

please. can me out of problem. in advance.

- (void)applicationdidenterbackground:(uiapplication *)application {     __block uibackgroundtaskidentifier  taskid = 0;     taskid = [application beginbackgroundtaskwithexpirationhandler:^{         taskid = uibackgroundtaskinvalid;     }]; } 

just add code appdelegate.m , give 10 min after app enter background


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -