SensingKit / SensingKit-iOS

An iOS framework that provides Mobile Sensing to your apps.
https://www.sensingkit.org
GNU Lesser General Public License v3.0
108 stars 25 forks source link

Running on background #18

Closed mychaelgo closed 4 years ago

mychaelgo commented 4 years ago

for pedometer sensor, is it can be run on background? (even the app is suspended or closed)

minoskt commented 4 years ago

Hello, and sorry for such late reply.

The sensors that is currently available in SensingKit are all event-driven or continuous sensors. iOS does support offline sensors and we do plan to support them in future versions of SensingKit. Unfortunately I don't have an estimate on when that will happen.

You can access the offline pedometer sensor yourself (but needs to happen outside SensingKit framework). You can finds information here: https://developer.apple.com/documentation/coremotion/cmpedometer