Monday, October 23, 2023
HomeiOS Developmentios - Lengthy exercise doesn't finish when finished from watch with out...

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


This query pertains to Apple’s pattern code, Constructing a multidevice exercise app, which could 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 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.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments