cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
527 stars 625 forks source link

[pedometer 4.0.1] Support Recording API on Android #993

Open maeddin opened 4 days ago

maeddin commented 4 days ago

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.