Closed HrafnPrescriby closed 1 month ago
Please read README of the plugin. It is explained there that Android doesn't guarantee following the specified sampling rate.
There is a note right under this code snippet: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/sensors_plus/sensors_plus#example
Platform
Android 14
Plugin
sensor_plus
Version
6.0.1
Flutter SDK
3.19.5
Steps to reproduce
Issue it reproducible by subscribing to any of the sensor streams. Some streams report faster than others, but all do not seem to use the supplied
samplingPeriod
input variable. See code example below.All devices used were resting on a surface, not moving. Device that were used were Pixel 6A and Motorolla G22.
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean