---
title: "backgroundSessionConfiguration(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/urlsessionconfiguration/backgroundsessionconfiguration(_:)"
---

# backgroundSessionConfiguration(_:)

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

## Declaration

```swift
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

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