{"action":"opened","issue":{"url":"https://api.github.com/repos/thibaultCha/TCBlobDownloadSwift/issues/8","labels_url":"https://api.github.com/repos/thibaultCha/TCBlobDownloadSwift/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/thibaultCha/TCBlobDownloadSwift/issues/8/comments","events_url":"https://api.github.com/repos/thibaultCha/TCBlobDownloadSwift/issues/8/events","html_url":"https://github.com/thibaultCha/TCBlobDownloadSwift/issues/8","id":91384853,"number":8,"title":"Background Transfers","user":{"login":"bonebox","id":1120504,"avatar_url":"https://avatars.githubusercontent.com/u/1120504?v=3","gravatar_id":"","url":"https://api.github.com/users/bonebox","html_url":"https://github.com/bonebox","followers_url":"https://api.github.com/users/bonebox/followers","following_url":"https://api.github.com/users/bonebox/following{/other_user}","gists_url":"https://api.github.com/users/bonebox/gists{/gist_id}","starred_url":"https://api.github.com/users/bonebox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonebox/subscriptions","organizations_url":"https://api.github.com/users/bonebox/orgs","repos_url":"https://api.github.com/users/bonebox/repos","events_url":"https://api.github.com/users/bonebox/events{/privacy}","received_events_url":"https://api.github.com/users/bonebox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T23:25:18Z","updated_at":"2015-06-26T23:25:18Z","closed_at":null,"body":"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.  \r\n\r\nThe 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](https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/URLLoadingSystem/Articles/UsingNSURLSession.html#//apple_ref/doc/uid/TP40013509-SW44)).\r\n\r\nOne 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.\r\n\r\nSo 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?"}}