As per the documentation, the App to using HKworkoutsession continues to run inthe foreground. But I've noticed different behaviour in simulator and device.
In iPhone + Watch simulator, it seems to work as per the documentation. An active work out session seems to keep the watch App alive.
In iPhone + Watch device, the watch app seems to go into inactive state in 15-20 sec after the watch screen becomes inactive.
Here is how I am setting up the workout session
workoutSession = HKWorkoutSession(activityType: HKWorkoutActivityType.Running, locationType: HKWorkoutSessionLocationType.Indoor) HKHealthStore().startWorkoutSession(workoutSession)
Is anyone obverving the same behaviour? Does it seems like a beta bug?