WKExtendedRuntimeSessionState.invalid
Either the session has encountered an error, or it has stopped running.
Declaration
case invalidDiscussion
The system passes a WKExtendedRuntimeSessionInvalidationReason value to the session delegate’s extendedRuntimeSession(_:didInvalidateWith:error:) method. Use this value to determine why the session became invalid.