---
title: WKExtendedRuntimeSessionErrorCode.notApprovedToStartSession
framework: watchkit
role: symbol
role_heading: Case
path: watchkit/wkextendedruntimesessionerrorcode/notapprovedtostartsession
---

# WKExtendedRuntimeSessionErrorCode.notApprovedToStartSession

The app attempted to start a session, but doesn’t have a valid session type.

## Declaration

```swift
case notApprovedToStartSession
```

## Discussion

Discussion To use extended runtime sessions, your app must enable the Background Mode capability and select a session type.

## 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.barDisabled](watchkit/wkextendedruntimesessionerrorcode/bardisabled.md)
- [WKExtendedRuntimeSessionErrorCode.notApprovedToSchedule](watchkit/wkextendedruntimesessionerrorcode/notapprovedtoschedule.md)
