Open Happypig375 opened 1 year ago
Old issue here https://github.com/xamarin/Essentials/issues/362 Workaround here https://github.com/shinyorg/shiny
not every platform has a step counter, maybe we can install a third party library and use it in platform specific code in MAUI, the third party library would give you access to that platform's pedometer instead of provided by MAUI framework because it's an UI framework
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
In the meantime, I've wrapped the basic functionality for iOS and Android in a plugin here: https://github.com/jfversluis/Plugin.Maui.Pedometer
Description
Implements an API that allows to interact with integrated Step Counter when available in order to have:
Public API Changes
Android: https://developer.android.com/guide/topics/sensors/sensors_motion iOS: https://developer.apple.com/documentation/coremotion/cmpedometer UWP: https://docs.microsoft.com/en-us/uwp/api/windows.devices.sensors.pedometerreading
Intended Use-Case
To record steps using the step counter sensor, for health and sports app etc.