Post

Replies

Boosts

Views

Activity

App Store OS versioning rules for watchOS apps
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 ?
2
0
650
Oct ’23
Problem with auto pause in workouts and duration
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 .
2
0
1.6k
Jun ’20