WKExtendedRuntimeSessionErrorCode.mustBeActiveToStartOrSchedule
The watchOS app attempted to start or schedule a session while not in an active state.
Declaration
case mustBeActiveToStartOrScheduleDiscussion
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
WKExtendedRuntimeSessionErrorCode.unknownWKExtendedRuntimeSessionErrorCode.scheduledTooFarInAdvanceWKExtendedRuntimeSessionErrorCode.notYetStartedWKExtendedRuntimeSessionErrorCode.exceededResourceLimitsWKExtendedRuntimeSessionErrorCode.barDisabledWKExtendedRuntimeSessionErrorCode.notApprovedToStartSessionWKExtendedRuntimeSessionErrorCode.notApprovedToSchedule