Works on Android API 19+
I made plugin using this -> link
As you can see from the reference, step counter value will be reset after reboot device
This plug-in saves you time because you do not have to create it yourself!
Features:
1. When rebooting, you can start the step counter service automatically without turning on the app.
2. On/Off Pedometer
There are 3 methods in Step Counter Plugin
1. int GetStepCount()
1) Return the number of steps since boot
2) The number of steps will only be reset when device rebooted
3) Reference video provided by Google -> link
2. void StartStepCounterService()
1) Start step counter service
2) If you call this function when already service running, nothing happen
3. void StopStepCounterService()
1) Stop step counter service
2) If you call this function when service not running, nothing happen