Posts

Post marked as solved
2 Replies
386 Views
have a watchOS app and it’s iOS counterpart in the AppStore. For now, my app support iOS 15 and watchOS 8. The next version will make a huge step forward and only supports iOS 17 and watchOS 10. I have a question : If someone has an iPhone on iOS17 and a watch on watchOS 8, will the AppStore update the app ? It will be incompatible as the new iOS app won’t work with the old watchOS one. I hope the AppStore won’t propose the update in this case to avoid impacting users with a modern iPhone and an old Apple Watch who can continue with the previous app version. What’s your advice ?
Posted
by rbart.
Last updated
.
Post not yet marked as solved
2 Replies
1.4k Views
I am building a running workout for Apple Watch and I have a problem to implement an "auto-pause" feature.  func workoutSession(_ workoutSession: HKWorkoutSession, didGenerate event: HKWorkoutEvent) { 						// Auto-pause 						if event.type == HKWorkoutEventType.motionPaused && workoutSettings.autoPause { 								print("Auto Pause") 								pauseWorkout() 						} 						if event.type == HKWorkoutEventType.motionResumed && workoutSettings.autoPause { 								print("Auto Resume") 								resumeWorkout() 						} 				} If I pause the session with pauseWorkout (which calls pause() and method of HKWorkoutSession) the session never receives the .motionResumed event. All events are disabled during the pause. If I don't pause the HKWorkoutSession, it's OK to auto-resume the workout, but the session continues to run and the elapsedTime continues to increase during the auto-pause. What is the solution .
Posted
by rbart.
Last updated
.