This query pertains to Apple’s pattern code, Constructing a multidevice exercise app, which may be downloaded from the next hyperlink.
When the exercise is began from the Apple Watch with the iPhone app closed, you may normally finish the exercise from the watch within the first few seconds. Nonetheless, if the exercise lasts greater than 30 seconds and the exercise is ended by way of the watch, every part will stall for a number of minutes or indefinitely till the iPhone app is opened.
The issue appears to happen on the following line of code
attempt await session?.sendToRemoteWorkoutSession(knowledge: knowledge)
How can the multi-device exercise performance be retained, however customers also can begin and finish the exercise with solely the watch? I have not been capable of determine something elegant out, however it might be simply attainable for somebody with the proper ability set.