Just call it directly.
// it appears handleActiveWorkoutRecovery isn't called, so we are updating the name, and calling it directly.
func checkForActiveWorkoutSession() {
HealthStoreManager.shared.healthStore.recoverActiveWorkoutSession { (session, error) in
if let session {
Crashlytics.crashlytics().record(error: NSError(domain: "Workout Recovery", code: 00, userInfo: nil))
WorkoutFactory.shared.restoreSession(session)
}
}
}
Topic:
App & System Services
SubTopic:
Core OS
Tags: