Last updated:
0 purchases
pedometer plus
Pedometer #
This plugin allows for continuous step counting and pedestrian status using the built-in pedometer sensor API of iOS and Android devices.
Examples of the StepStatusStream screen on iOS.
Platform support #
✅ supported
❔ supported, but not tested locally.
❌ not supported
Feature
Android
iOS
stepStatusStream
❔
✅
stepCountStream (All steps taken from the system.)
✅
✅
stepCountStreamFrom (Steps since the stipulated date)
❌
✅
getStepCount (Number of steps between specified beginning and end.)
❌
✅
Permissions #
For Android 10 and above add the following permission to the Android manifest:
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
copied to clipboard
For iOS, add the following entries to your Info.plist file in the Runner xcode project:
<key>NSMotionUsageDescription</key>
<string>This application tracks your steps</string>
copied to clipboard
Step Count #
The step count represents the number of steps taken since the last system boot.
On Android, any steps taken before installing the application will not be counted.
Pedestrian Status #
The Pedestrian status is either walking or stopped. In the case that of an error,
the status will be unknown.
Availability of Sensors #
Both Step Count and Pedestrian Status may not be available on some phones:
It was found that some Samsung phones do not support Step Count or Pedestrian Status
Older iPhones do not support Pedestrian Status in particular
In the case that the step sensor is not available, an error will be thrown. The application needs to handle this error.
Forked packages
https://github.com/cph-cachet/flutter-plugins/tree/master/packages/pedometer
Inspired packages
https://github.com/santa112358/simple_pedometer
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.