carp-dk / carp-dk/flutter-plugins

Pedometer 4.0.1 / 3.0.0 - IOS returning incorrect value from steps stream

Open
#842 2 comments 0 reactions 0 assignees View on GitHub
bugfix pedometer
Dominant language
Dart
Stars
608
Forks
735
Avg merge
1m
Merged PRs (30d)
3

Description

### Device / Emulator and OS
- Device: Iphone 13 Pro, Iphone 14 Pro
- OS: on Iphone 13 pro -> 17.1.1, on Iphone 14 pro -> 16.6.1

### Describe the bug
While using Pedometer package, i noticed bug on IOS devices where stream will return incorrect steps value, for example: stream will return 5000 steps, but after while it can happen that stream will return 4000 (for example, but it can be 10000, without making steps), it happened after stream being stopped for while, even for just a minute or hours, it never happened while stream was active and returning data, IMPORTANT: it happened without rebooting device, this is really big problem for me since i can't relly on this value being correct.

### To Reproduce
Use Pedometer package (i tried version 4.0.1 and 3.0.0), on real ios device.

### Expected behavior
I expect that value from stream is correct, as described in package, meaning since reboot of device, and value not being changed without rebooting device.

### Actual behavior
Logs i saved from IOS device i tested this package and found this issue. first value is time of log, and second is steps value from stream:

2023-10-26 12:17:09.300893
26485

2023-10-26 12:25:33.391574
26529

2023-10-26 12:25:33.391574
26533

2023-10-26 14:17:03.857615
26333

2023-10-26 14:33:55.859886
96784

2023-10-26 14:33:55.861243
26333

### Flutter doctor
[√] Flutter (Channel stable, 3.7.5, on Microsoft Windows [Version 10.0.22621.2428], locale sk-SK)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[!] Android Studio (version 2022.3)
X Unable to find bundled Java version.
[√] VS Code (version 1.84.2)
[√] Connected device (3 available)
[√] HTTP Host Availability

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.