This query pertains to Apple’s pattern code, Constructing a multidevice exercise app, which could be downloaded from the next hyperlink.
When the exercise is began from the Apple Watch with the iPhone app closed, you possibly can often finish the exercise from the watch within the first few seconds. Nevertheless, if the exercise lasts greater than 30 seconds and the exercise is ended through the watch, the whole lot 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 may begin and finish the exercise with solely the watch? I have not been in a position to determine something elegant out, however it could be simply doable for somebody with the fitting ability set.