HKWorkoutSession isn't keeping app at front of Apple Watch

后端 未结 1 1852
不知归路
不知归路 2021-02-04 17:55

It has been stated that an app running a HKWorkoutSession will have special privileges over other watchOS 2 apps, so when a user looks at their Apple Watch, it will go to the vi

相关标签:
1条回答
  • 2021-02-04 18:26

    We're seeing that too, for the moment we've made sure 'opens last activity' is configured.

    When the UI is active we start a dispatch_timer to request and process data in 1 second intervals.

    Make sure you do any significant processing using the NSUserProcessInfo method though and pause the dispatch_timers whenever you are no longer active. You'll get crashes otherwise.

    0 讨论(0)
提交回复
热议问题