osmandapp / OsmAnd-iOS

OsmAnd for iOS
Other
290 stars 92 forks source link

The "Battery Level" widget is displayed incorrectly #4145

Open Nastya3003 opened 1 week ago

Nastya3003 commented 1 week ago

Steps to reproduce

  1. Open the OsmAnd app.
  2. Tap the menu button in the bottom-left corner.
  3. Select "Screen Settings."
  4. Choose left/right/top/bottom panel.
  5. Tap the "Add Widget" button.
  6. Select the "Battery Level" widget.
  7. Exit the settings menu.
  8. Compare the value shown in the app with the value on the phone.
  9. If the values match, continue using the app until the actual battery level (phone value) changes.

Actual result: The battery level displayed on the screen does not match the actual value.

The value in the app is higher than the actual one

While the phone is charging.

Expected result: The battery level displayed on the screen matches the actual value.

Reproduced on iPhone 15 Pro Max, iOS Version 17.6.1, OsmAnd Version 4.9.0.4.

yuriiurshuliak commented 1 week ago

The bug has been reproduced following the steps provided. To reproduce:

  1. Go to Menu → Configure Screen → Right Panel.
  2. Add the Battery Level Widget.
  3. Exit the settings menu and observe the widget.
  4. Compare the displayed battery level in OsmAnd with the phone's actual battery level.

Observed Behavior:
The Battery Level widget shows a higher or lower value than the phone's actual battery level, particularly when the phone is charging. The widget does not update to reflect changes in the phone's battery level accurately.

However, during testing on Android, the widget displayed correctly, and no such issue was observed.

OsmAnd 4.9.0.5 iOS Version 16.4.1

vshcherb commented 1 week ago

To do battery widget should be updated at least every minute