In Android, it is possible to count steps without a background service and still be able to differentiate between days/hours/minutes. This is much more energy-efficient than using the SensorManager directly. It would therefore make sense to support the Recording API in this plugin.
A big problem with this plugin is that you always have to count the steps yourself with Foreground services or in the background. You don't have this problem if you use the Recording API.
My current use case depends on the steps being manually monitored as I react in realtime to steps and Walking/Stopping changes. If this was added hopefully it would be optional
In Android, it is possible to count steps without a background service and still be able to differentiate between days/hours/minutes. This is much more energy-efficient than using the
SensorManager
directly. It would therefore make sense to support the Recording API in this plugin.https://developer.android.com/health-and-fitness/guides/recording-api
A big problem with this plugin is that you always have to count the steps yourself with Foreground services or in the background. You don't have this problem if you use the Recording API.