CMMotionActivityManager - Receiving motion activity updates while app is suspended or in background

后端 未结 1 622
野的像风
野的像风 2021-01-31 09:50

I\'ve been testing the new Motion Activity Manager APIs (CMMotionActivityManager). I want to create an app that can receive and process motion updates from st

相关标签:
1条回答
  • 2021-01-31 10:16

    This is not a new issue. There has never been a Core Motion background usage setting. You are allowed to use Core Motion if your app is running in the background, but to make it run in the background you have to be doing something else (e.g. getting location updates at the time the user sends the app into the background, and you have the location background service listed in your Info.plist.

    Note too that in iOS 7 if you have the right hardware you may be able to use deferred location updates to wake your app periodically in the background. Thus you save power but your app gets to run in the background now and then without an Info.plist background service listing.

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