I'm using URLSession
to download a .zip
file when the first view appears, and it works fine.
The problem is that if the user's device sleeps after a duration (I believe 15/75 seconds are the options in settings) or by tilting their wrist etc - the download fails and the user has to retry when they open the app back up.
Other than warning the user to interact with the device during download, or changing their settings (neither ideal), is there anything I can do? It's not a huge file, around 10mb but poor networks could take a while.