<!--
{
  "availability" : [
    "watchOS: 5.0.0 - 9.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKExtensionDelegate/handleActiveWorkoutRecovery()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WKExtensionDelegate(im)handleActiveWorkoutRecovery"
  },
  "title" : "handleActiveWorkoutRecovery()"
}
-->

# handleActiveWorkoutRecovery()

Tells the delegate when the app relaunches after crashing during an active workout session.

```
optional func handleActiveWorkoutRecovery()
```

## Discussion

To recover from a crash, call your HealthKit store’s <doc://com.apple.documentation/documentation/HealthKit/HKHealthStore/recoverActiveWorkoutSession(completion:)> method to receive a new workout session. You can then set up your data source and delegate as described in <doc://com.apple.documentation/documentation/HealthKit/running-workout-sessions>.

## See Also

  <doc://com.apple.documentation/documentation/HealthKit/HKHealthStore/recoverActiveWorkoutSession(completion:)>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)