Posts

Post not yet marked as solved
1 Replies
1.4k Views
I'm working on updating my Apple Watch workout app to support always on display low frequency modes in watchOS 8. I'm using the sample project (https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/build_a_workout_app_for_apple_watch) as a guide but am hitting some problems with getting the workout metrics updating while in the Always On state. The timer correctly hides the sub seconds but the time and other health metrics do not update while the Always On mode is toggled in the simulator. This sample project used to work during the first Xcode beta but is no longer working. Does anyone know if there are any new requirements aside from using the TimelineView? Thanks for the help!
Posted
by docurtis.
Last updated
.
Post not yet marked as solved
9 Replies
1.7k Views
Hey everyone, I'm working on a watchOS SwiftUI workout app and am working on implementing recovering a workout after a crash. I've added a WKExtensionDelegate by including @WKExtensionDelegateAdaptor property wrapper. I've done some testing to verify that the delegate is working correctly by adding log statements in methods such as applicationDidBecomeActive() and applicationWillResignActive(). I've forced a crash in my app while a work session is active but it doesn't look like handleActiveWorkoutRecovery() is being called. I've installed the logging profile on my watch and don't see the log statement I added in the method. Should handleActiveWorkoutRecovery() be called in the extension delegate of a SwiftUI watchOS app or am I doing something wrong? Any help would be greatly appreciated!
Posted
by docurtis.
Last updated
.