mzeeshanid / MZDownloadManager

This download manager uses NSURLSession api to download files. It can download multiple files at a time. It can download large files if app is in background. It can resume downloads if app was quit.
BSD 3-Clause "New" or "Revised" License
1.12k stars 238 forks source link

App rejected by Apple when using this component and copying to documents directory #13

Closed nikhilcoolstuff closed 9 years ago

nikhilcoolstuff commented 9 years ago

If we use this control to download files, and save to document directory, Apple rejects it because the downloaded data is by default synced to iCloud.

Please add the below code in addDownloadTask method to set NSURLIsExcludedFromBackupKey so files are not automatically synced to iCloud and Apple accepts it :).

mythodeia commented 9 years ago

i think this is outside the scope of the library. This library does what its supposed to do well. Personally i think its the user's responsibility to set whatever permissions he wants to the downloaded files. The rejection is not because of any fault of this library. The permissions could be set by you. But thats just my opinion :+1:

mzeeshanid commented 9 years ago

Yes @mythodeia you are right. @nikhilcoolstuff Let say if i add that flag to prevent iCloud sync within the library then you download a document file and you want it to be synced to iCloud. Thats why you have to decide yourself which file can be synced or which one can't be. Thanks