I am thinking of making a watchOS2
app that uses the accelerometer. If the app is running in the background, will it still be able to receive input from the accelerometer or CMMotionManager
?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You are able to access live accelerometer data only when the watchOS2 app is running. You could however access accelerometer historical data, i.e accelerometer data from when your app was in the background.
Watch this WWDC talk for more information: Whats new in Core Motion