Swiftpack.co - Package - perrystreetsoftware/CombineBackgroundUploading

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

perrystreetsoftware/CombineBackgroundUploading

Enable background uploading with URLSession uploadTasks and Combine

CombineBackgroundUploading

This class implements background uploading using URLSession uploadTask using the Combine framework

Why isn't this built in?

See this stack post.

URLSession.DataTaskPublisher is built on top of URLSessionDataTask and sets a completion handler on the task. So you cannot use DataTaskPublisher with a background session.

Credits

Parts of this library use MultipartFormData from the Alamofire project.