HomeiOS Developmentios - Lengthy exercise doesn't finish when executed from watch with out...

ios – Lengthy exercise doesn’t finish when executed from watch with out iPhone


This query pertains to Apple’s pattern code, Constructing a multidevice exercise app, which may be downloaded from the next hyperlink.

https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/building_a_multidevice_workout_app

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.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments