cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
554 stars 681 forks source link

[pedometer 4.0.1] Support Recording API on Android #993

Open maeddin opened 5 months ago

maeddin commented 5 months 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.

Codel1417 commented 4 months ago

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

zachguo commented 1 month ago

How about incorporating this into the pedometer package?