Contents

backgroundSessionRequiresSharedContainer

The shared container identifier of the URL session configuration is needed but hasn’t been set.

Declaration

static var backgroundSessionRequiresSharedContainer: URLError.Code { get }

Discussion

To use a URLSession to perform background uploading or downloading in an app extension, you coordinate with the host app using a shared container. The app extension must set the sharedContainerIdentifier of the URL session’s configuration to the shared container’s identifier. See Performing Uploads and Downloads in App Extension Essentials for more information.

See Also

Error codes