- iOS7 with M7 motion coprocessor (currently only iPhone5s)
$ cordova plugin add https://github.com/jihyunlee/M7StepCounter.git
-
isAvailable(successCallback, failureCallback)
- @param successCallback callback
- @param failureCallback callback
- @return A Boolean indicating whether step-counting support is available on the current device
- @see isStepCountingAvailable
-
start(successCallback, failureCallback)
- @param successCallback
- @param failureCallback
- @return
- @see startStepCountingUpdatesToQueue:updateOn:withHandler:
-
stop(successCallback, failureCallback)
- @param successCallback
- @param failureCallback
- @return
- @see stopStepCountingUpdates
-
getSteps(day, successCallback, failureCallback)
- @param day
- @param successCallback
- @param failureCallback
- @return
- @see startStepCountingUpdatesToQueue:updateOn:withHandler:
- CMStepCounter Class from Apple Developer