<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureSession/InterruptionReason/videoDeviceNotAvailableInBackground",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@E@AVCaptureSessionInterruptionReason@AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground"
  },
  "title" : "AVCaptureSession.InterruptionReason.videoDeviceNotAvailableInBackground"
}
-->

# AVCaptureSession.InterruptionReason.videoDeviceNotAvailableInBackground

An interruption caused by the app being sent to the background while using a camera.

```
case videoDeviceNotAvailableInBackground
```

## Discussion

Camera usage is prohibited while in the background. If you attempt to start running a camera while in the background, the capture session sends an [`wasInterruptedNotification`](/documentation/AVFoundation/AVCaptureSession/wasInterruptedNotification) with this interruption reason. If you don’t explicitly call the [`stopRunning()`](/documentation/AVFoundation/AVCaptureSession/stopRunning()) method, your [`startRunning()`](/documentation/AVFoundation/AVCaptureSession/startRunning()) request is preserved, and when your app comes back to foreground, you receive [`interruptionEndedNotification`](/documentation/AVFoundation/AVCaptureSession/interruptionEndedNotification) and your session starts running.

---

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)