Background Downloading a >4GB zip on an iOS tablet with small memory

Since iOS has a standard download functionality that basically every app uses we decided to also go with that way. The standard functionality had an integrated background mode which we wanted to make use of. When using the background mode it was not possible to stop the download. We were able to stop it in our UI so that the user could work again but it was still downloaded in the background of the app. After the download finished the download abortion was triggered and the downloaded content was deleted. So basically when aborting a download it downloaded the whole package and then deleted it again. When working on a device with small memory this lead to big issues like unexpected app crashed because the background mode also needed a lot of memory. Our solution was to divide the big download into chunks and implemented our own logic for the download which was not that hard but the background mode handling of iOS is still a bit weird. Also working with big files on a tablet is really not that easy since you ran into memory issues quite fast.

Comments

Thanks for this solution. I also had my fair share of troubles with background handling on iOS apps, regarding server polling and notification services, so I'll add this to my list to look out for sure!
Sascha Ple├čberger - Mon, 12/13/2021 - 14:59 :::
Thanks for pointing this out and your suggestion, this is definitely one of the hidden performance issues.
Parinaz Momeni ... - Tue, 12/21/2021 - 23:14 :::
Thank you as well! As i was facing similar issues while developing my very own IOS App this Solution is very helpful.
Moritz Ruoff Holzer - Wed, 12/22/2021 - 07:30 :::
No answers yet.