---
title: handleActiveWorkoutRecovery()
framework: watchkit
role: symbol
role_heading: Instance Method
path: watchkit/wkapplicationdelegate/handleactiveworkoutrecovery()
---

# handleActiveWorkoutRecovery()

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

## Declaration

```swift
optional func handleActiveWorkoutRecovery()
```

## Discussion

Discussion To recover from a crash, call your HealthKit store’s recoverActiveWorkoutSession(completion:) method to receive a new workout session. You can then set up your data source and delegate as described in Running workout sessions.

## See Also

### Related Documentation

- [recoverActiveWorkoutSession(completion:)](healthkit/hkhealthstore/recoveractiveworkoutsession(completion:).md)

### Handling a workout session

- [handle(_:)](watchkit/wkapplicationdelegate/handle(_:)-1pfoc.md)
