Contents

WKExtendedRuntimeSessionErrorCode.barDisabled

The user has disabled background app refresh.

Declaration

case barDisabled

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