<!--
{
  "availability" : [
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKExtendedRuntimeSessionErrorCode/barDisabled",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:@E@WKExtendedRuntimeSessionErrorCode@WKExtendedRuntimeSessionErrorBARDisabled"
  },
  "title" : "WKExtendedRuntimeSessionErrorCode.barDisabled"
}
-->

# WKExtendedRuntimeSessionErrorCode.barDisabled

The user has disabled background app refresh.

```
case barDisabled
```

## Discussion

If the user has disabled Background App Refresh for this app, any attempt to schedule a session by calling the [`start(at:)`](/documentation/WatchKit/WKExtendedRuntimeSession/start(at:)) method fails. The system calls your delegate’s [`extendedRuntimeSession(_:didInvalidateWith:error:)`](/documentation/WatchKit/WKExtendedRuntimeSessionDelegate/extendedRuntimeSession(_:didInvalidateWith:error:)) method and passes a [`WKExtendedRuntimeSessionInvalidationReason.error`](/documentation/WatchKit/WKExtendedRuntimeSessionInvalidationReason/error) reason with a [`WKExtendedRuntimeSessionErrorCode.barDisabled`](/documentation/WatchKit/WKExtendedRuntimeSessionErrorCode/barDisabled) error.

Users can turn off Background App Refresh by selecting General > Background App Refresh in the Watch App.

---

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)