Post

Replies

Boosts

Views

Activity

How to get Auto-Pause preference from the watchOS Settings?
My App with outdoor-running activity type receives HKWorkoutEvent.motionPaused und HKWorkoutEvent.motionResumed events from HKLiveWorkoutBuilderDelegate, even if the User toggled the feature off in the workout settings (Settings -> Workout -> Auto-Pause). I guess this is unexpected behavior (FB11754136), but is there a way to check the user preference from the watchOS settings? Kind regards, Josh
1
0
1.6k
Nov ’22
How to properly ask for location permissions in WatchOS 8
Hi. I'm developing a running App for WatchOS. During onboarding I ask for location permission in order to save the workout route. I use requestWhenInUseAuthorization()on a CLLocationManager. Since WatchOS 8, I have encountered some weird behavior. After a while the permission seems to "reset" without any interaction by the user or the App. When I check the permission in WatchOS, its state is "Ask or When I Share". Am I'm missing something or is it a bug? I'm also unable to change the permissions in settings.
1
0
1.2k
Dec ’21
How to restore HKWorkoutSession after App relaunch?
I'm developing a running App for WatchOS. I implemented workout restoration as described here: https://developer.apple.com/documentation/watchkit/wkextensiondelegate/2976310-handleactiveworkoutrecovery. Unfortunately, it only works when a crash occurs. When the user closes the App during a workout, the session still remains and there's no way to end it when the user relaunches the App. Is there any way to retrieve the active session and restore the session like HKHealthStore().recoverActiveWorkoutSession?
1
0
1.1k
Oct ’21
How to get Auto-Pause preference from the watchOS Settings?
My App with outdoor-running activity type receives HKWorkoutEvent.motionPaused und HKWorkoutEvent.motionResumed events from HKLiveWorkoutBuilderDelegate, even if the User toggled the feature off in the workout settings (Settings -> Workout -> Auto-Pause). I guess this is unexpected behavior (FB11754136), but is there a way to check the user preference from the watchOS settings? Kind regards, Josh
Replies
1
Boosts
0
Views
1.6k
Activity
Nov ’22
How to properly ask for location permissions in WatchOS 8
Hi. I'm developing a running App for WatchOS. During onboarding I ask for location permission in order to save the workout route. I use requestWhenInUseAuthorization()on a CLLocationManager. Since WatchOS 8, I have encountered some weird behavior. After a while the permission seems to "reset" without any interaction by the user or the App. When I check the permission in WatchOS, its state is "Ask or When I Share". Am I'm missing something or is it a bug? I'm also unable to change the permissions in settings.
Replies
1
Boosts
0
Views
1.2k
Activity
Dec ’21
How to restore HKWorkoutSession after App relaunch?
I'm developing a running App for WatchOS. I implemented workout restoration as described here: https://developer.apple.com/documentation/watchkit/wkextensiondelegate/2976310-handleactiveworkoutrecovery. Unfortunately, it only works when a crash occurs. When the user closes the App during a workout, the session still remains and there's no way to end it when the user relaunches the App. Is there any way to retrieve the active session and restore the session like HKHealthStore().recoverActiveWorkoutSession?
Replies
1
Boosts
0
Views
1.1k
Activity
Oct ’21