<!--
{
  "availability" : [
    "iOS: 9.0.0 - 18.4.0",
    "iPadOS: 9.0.0 - 18.4.0",
    "macCatalyst: 13.1.0 - 18.4.0",
    "macOS: 10.11.0 - 15.4.0",
    "tvOS: 9.0.0 - 18.4.0",
    "visionOS: 1.0.0 - 2.4.0",
    "watchOS: 2.0.0 - 11.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URLSessionConfiguration/shouldUseExtendedBackgroundIdleMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSURLSessionConfiguration(py)shouldUseExtendedBackgroundIdleMode"
  },
  "title" : "shouldUseExtendedBackgroundIdleMode"
}
-->

# shouldUseExtendedBackgroundIdleMode

A Boolean value that indicates whether TCP connections should be kept open when the app moves to the background.

```
var shouldUseExtendedBackgroundIdleMode: Bool { get set }
```

## Discussion

In addition to requesting that the connection be kept open, setting this value to <doc://com.apple.documentation/documentation/Swift/true> asks the system to delay reclaiming the connection when the app moves to the background.

## See Also

  [Networking and Multitasking](https://developer.apple.com/library/archive/technotes/tn2277/_index.html#//apple_ref/doc/uid/DTS40010841)



---

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)