<!--
{
  "availability" : [
    "iOS: 7.0.0 - 8.0.0",
    "iPadOS: 7.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.9.0 - 10.10.0",
    "tvOS: 9.0.0 - 9.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URLSessionConfiguration/backgroundSessionConfiguration(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSURLSessionConfiguration(cm)backgroundSessionConfiguration:"
  },
  "title" : "backgroundSessionConfiguration(_:)"
}
-->

# backgroundSessionConfiguration(_:)

Returns a session configuration object that allows HTTP and HTTPS uploads or downloads to be performed in the background.

```
class func backgroundSessionConfiguration(_ identifier: String) -> URLSessionConfiguration
```

## Parameters

`identifier`

The unique identifier for the configuration object. This parameter must not be `nil` or an empty string.

## Return Value

A URL session configuration object that causes upload and download tasks to be performed by the system in a separate process.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)