Skip to content

Background Transfers #8

@bonebox

Description

@bonebox

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions