Resuming large downloads and integrity
You're downloading an audio file of several hundred MB, and the app gets terminated or the network drops. You want to resume instead of starting over. Which HTTP headers are involved?
You're downloading an audio file of several hundred MB, and the app gets terminated or the network drops. You want to resume instead of starting over. Which HTTP headers are involved?
Resuming means sending a partial request with the HTTP Range header starting from the bytes you have, and the server answers with 206 Partial Content and Content-Range. Check support through Accept-Ranges, and on iOS resume through downloadTask's resumeData, which still requires the server to support Range.
NetworkingMultiple choiceAdvanced
You're building a feature that downloads video and audio files (hundreds of MB to GB) for…
#resume-data #download-task #background-session
NetworkingMultiple choiceIntro
In an app that uses URLSession, you want a large file download to keep going after the…
#background-session
NetworkingShort answerExpert
A large file is downloading through a background URLSession and the app gets terminated…
#background-session
SecurityShort answerIntro
Why does an iOS app have to be code signed before it runs? Focus on what the signature…
#integrity