Use Core Motion (iOS) or Google Fit (Android) to get the user’s step count.
Determine whether the pedometer is available.
A boolean indicating whether the pedometer is available on this device.
Get the step count between two dates.
start (Date) — A date indicating the start of the range over which to measure steps.
end (Date) — A date indicating the end of the range over which to measure steps.
A number indicating the number of steps taken between the given dates.
Subscribe to pedometer updates.
callback (function) A callback that is invoked when new step count data is available. The callback is provided a single argument that is an object with a
An EventSubscription object that you can call remove() on when you would like to unsubscribe the listener.
Still have questions? Ask on our forums!