I see the README states that this supports background downloads, but it seems like it's not yet comprehensive? I'm assuming in order to get basic support, I need to create a new TCBlobDownloadManager with a custom NSURLSessionConfiguration using backgroundSessionConfigurationWithIdentifier:. That's fine, although it would be nice if the defaultSession singleton supported it.
The bigger issue is that the DownloadDelegate class doesn't implement the NSURLSessionDelegate methods, namely URLSessionDidFinishEventsForBackgroundURLSession:. It would also need some sort of background completion handler property in order to store it when it's passed in the application:handleEventsForBackgroundURLSession:completionHandler: method in the AppDelegate. (See the Background Transfer Considerations section of Apple's URL Loading System Programming Guide).
One way around this would be for a developer to subclass DownloadDelegate and add those methods, but unfortunately there is no way to set the TCBlobDownloadManager delegate to something else since it's marked private, and DownloadDelegate also can't be subclassed because it's not public.
So in short, do you have plans on adding this, or at the very least can the DownloadDelegate class be made public along with its corresponding delegate property on TCBlobDownloadManager so that other developers can more easily implement it?
I see the README states that this supports background downloads, but it seems like it's not yet comprehensive? I'm assuming in order to get basic support, I need to create a new
TCBlobDownloadManagerwith a customNSURLSessionConfigurationusingbackgroundSessionConfigurationWithIdentifier:. That's fine, although it would be nice if thedefaultSessionsingleton supported it.The bigger issue is that the
DownloadDelegateclass doesn't implement theNSURLSessionDelegatemethods, namelyURLSessionDidFinishEventsForBackgroundURLSession:. It would also need some sort of background completion handler property in order to store it when it's passed in theapplication:handleEventsForBackgroundURLSession:completionHandler:method in the AppDelegate. (See the Background Transfer Considerations section of Apple's URL Loading System Programming Guide).One way around this would be for a developer to subclass
DownloadDelegateand add those methods, but unfortunately there is no way to set theTCBlobDownloadManagerdelegate to something else since it's marked private, andDownloadDelegatealso can't be subclassed because it's not public.So in short, do you have plans on adding this, or at the very least can the
DownloadDelegateclass be made public along with its correspondingdelegateproperty onTCBlobDownloadManagerso that other developers can more easily implement it?