Enumeration Case

WKExtendedRuntimeSessionErrorNotApprovedToStartSession

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

Declaration

WKExtendedRuntimeSessionErrorNotApprovedToStartSession = 7

Discussion

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

See Also

Error Codes

WKExtendedRuntimeSessionErrorUnknown

An unknown error occurred.

WKExtendedRuntimeSessionErrorScheduledTooFarInAdvance

The app attempted to schedule a session too far in the future.

WKExtendedRuntimeSessionErrorMustBeActiveToStartOrSchedule

The watchOS app attempted to start or schedule a session while not in an active state.

WKExtendedRuntimeSessionErrorNotYetStarted

The app invalidated the session before it started.

WKExtendedRuntimeSessionErrorExceededResourceLimits

The session exceeded its resource limits.

WKExtendedRuntimeSessionErrorBARDisabled

The user has disabled background app refresh.

WKExtendedRuntimeSessionErrorNotApprovedToSchedule

The app attempted to schedule a session, but the session type does not support scheduling.