'How to get workout session data on iphone app?

What is the correct way to pass the collected workout data on the apple watch to the iOS app for display? Should I do this using WatchConnectivity or is there a special way of communication designed for workout sessions.

My iOS app configures a workout and passes this configuration to the app on AppleWatch, which starts workout sessions from the received configuration. The new data on the watch appears in the workoutBuilder(_:didCollectDataOf:) method but how to pass it to the iphone?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source