---
title: WKExtendedRuntimeSessionErrorCode.barDisabled
framework: watchkit
role: symbol
role_heading: Case
path: watchkit/wkextendedruntimesessionerrorcode/bardisabled
---

# WKExtendedRuntimeSessionErrorCode.barDisabled

The user has disabled background app refresh.

## Declaration

```swift
case barDisabled
```

## Discussion

Discussion If the user has disabled Background App Refresh for this app, any attempt to schedule a session by calling the start(at:) method fails. The system calls your delegate’s extendedRuntimeSession(_:didInvalidateWith:error:) method and passes a WKExtendedRuntimeSessionInvalidationReason.error reason with a WKExtendedRuntimeSessionErrorCode.barDisabled error. Users can turn off Background App Refresh by selecting General > Background App Refresh in the Watch App.

## See Also

### Error Codes

- [WKExtendedRuntimeSessionErrorCode.unknown](watchkit/wkextendedruntimesessionerrorcode/unknown.md)
- [WKExtendedRuntimeSessionErrorCode.scheduledTooFarInAdvance](watchkit/wkextendedruntimesessionerrorcode/scheduledtoofarinadvance.md)
- [WKExtendedRuntimeSessionErrorCode.mustBeActiveToStartOrSchedule](watchkit/wkextendedruntimesessionerrorcode/mustbeactivetostartorschedule.md)
- [WKExtendedRuntimeSessionErrorCode.notYetStarted](watchkit/wkextendedruntimesessionerrorcode/notyetstarted.md)
- [WKExtendedRuntimeSessionErrorCode.exceededResourceLimits](watchkit/wkextendedruntimesessionerrorcode/exceededresourcelimits.md)
- [WKExtendedRuntimeSessionErrorCode.notApprovedToStartSession](watchkit/wkextendedruntimesessionerrorcode/notapprovedtostartsession.md)
- [WKExtendedRuntimeSessionErrorCode.notApprovedToSchedule](watchkit/wkextendedruntimesessionerrorcode/notapprovedtoschedule.md)
