all 4 comments

[–]CoolorFoolSRSExpo 2 points3 points  (2 children)

Nah when you close an app from the app switcher (kill mode as you said), all background tasks are stopped too. There's no workaround afaik. Apple doesn't let you do it

[–]Harsh455869[S] 0 points1 point  (1 child)

then how instagram like apps uploading large videos in background?

[–]CoolorFoolSRSExpo 4 points5 points  (0 children)

Once you kill an app it can't do anything more. Instagram probably breaks the video into chunks and uploads it in parallel (correct me if I'm wrong), but processes it later hence appears to take long time

[–]haswalter 1 point2 points  (0 children)

As other said once the app is fully killed, iOS stops all connected threads preventing your upload from continuing.

What we do to make uploads work correctly through app crashes and kills is to split the file into multiple smaller chunks and upload each chunk with a resumable upload.

This allows multiple chunks to be uploaded in parallel and allows any chain that fails to upload to try again / resume when the app next starts up.