Reputation: 40755
StoreKit has a bug that can lead to incomplete downloads being marked as "Finished".
I have seen some apps that download large files after In-App Purchases do an integrity check on them. How is this done?
Upvotes: 1
Views: 1533
Reputation: 25917
Something I do in my own app is to pass a JSON with a list of resources will be downloading. Beside passing the URL of the resource, I also pass the checksum of it. After the download for a given file I compared the checksum I have from the JSON with the checksum of the file itself. You can use something like this.
Upvotes: 1