Contents

WKExtendedRuntimeSessionErrorCode.mustBeActiveToStartOrSchedule

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

Declaration

case mustBeActiveToStartOrSchedule

Discussion

You can only start or schedule sessions when the watchOS app is running in the foreground. Specifically, the WatchKit extension’s applicationState must equal WKApplicationState.active.

See Also

Error Codes