Skip to content

[Health 13.1.1] steps always return 0 #9

@hedihadi

Description

@hedihadi

Plugin Name

health

Plugin Version

13.1.1

Device

Galaxy S24 Ultra

Operating System

One UI 7.0

Describe the bug

Hello, when i retrieve steps it's always zero.
i use Galaxy S24 Ultra OneUI 7.0 Android 15

i tried the example app and it has the same problem
Image
the last 7 days is also zero
Image
but if i add data, it will show the added steps. but it doesn't show the steps from Health
Image

Steps to Reproduce

  1. clone the package
  2. run flutter pub get in the example folder
  3. run flutter run

Expected Behavior

it should show the 3,000 steps i walked that day from Samsung Health

Actual Behavior

it shows zero

Flutter Logs

I/VRI[MainActivity]@26732cc(27115): onDisplayChanged oldDisplayState=2 newDisplayState=2
D/ProfileInstaller(27115): Installing profile for cachet.plugins.health.health_example
I/VRI[MainActivity]@26732cc(27115): call setFrameRateCategory for touch hint category=high hint, reason=touch, vri=VRI[MainActivity]@26732cc
I/VRI[MainActivity]@26732cc(27115): onDisplayChanged oldDisplayState=2 newDisplayState=2
I/VRI[MainActivity]@26732cc(27115): call setFrameRateCategory for touch hint category=no preference, reason=boost timeout, vri=VRI[MainActivity]@26732cc
I/VRI[MainActivity]@26732cc(27115): onDisplayChanged oldDisplayState=2 newDisplayState=2
I/VRI[MainActivity]@26732cc(27115): call setFrameRateCategory for touch hint category=high hint, reason=touch, vri=VRI[MainActivity]@26732cc
I/VRI[MainActivity]@26732cc(27115): onDisplayChanged oldDisplayState=2 newDisplayState=2
I/FLUTTER_HEALTH(27115): Getting data for ACTIVE_ENERGY_BURNED between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BASAL_ENERGY_BURNED between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BLOOD_GLUCOSE between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BLOOD_OXYGEN between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BLOOD_PRESSURE_DIASTOLIC between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BLOOD_PRESSURE_SYSTOLIC between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BODY_FAT_PERCENTAGE between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for HEIGHT between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for WEIGHT between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for LEAN_BODY_MASS between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for HEIGHT between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BODY_TEMPERATURE between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for HEART_RATE between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for HEART_RATE_VARIABILITY_RMSSD between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for STEPS between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for DISTANCE_DELTA between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SPEED between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for RESPIRATORY_RATE between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_ASLEEP between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_AWAKE_IN_BED between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_AWAKE between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_DEEP between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_LIGHT between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_OUT_OF_BED between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_REM between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_UNKNOWN between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_SESSION between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for WATER between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for WORKOUT between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for RESTING_HEART_RATE between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for FLIGHTS_CLIMBED between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for NUTRITION between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for TOTAL_CALORIES_BURNED between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for MENSTRUATION_FLOW between 2025-07-19T20:25:38.036Z and 2025-07-20T20:25:38.036Z, filtering by []
I/flutter (27115): Total number of data points: 0.
I/VRI[MainActivity]@26732cc(27115): call setFrameRateCategory for touch hint category=no preference, reason=boost timeout, vri=VRI[MainActivity]@26732cc
I/VRI[MainActivity]@26732cc(27115): onDisplayChanged oldDisplayState=2 newDisplayState=2
I/VRI[MainActivity]@26732cc(27115): call setFrameRateCategory for touch hint category=high hint, reason=touch, vri=VRI[MainActivity]@26732cc
I/VRI[MainActivity]@26732cc(27115): onDisplayChanged oldDisplayState=2 newDisplayState=2
I/FLUTTER_HEALTH(27115): Getting data for ACTIVE_ENERGY_BURNED between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BASAL_ENERGY_BURNED between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BLOOD_GLUCOSE between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BLOOD_OXYGEN between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BLOOD_PRESSURE_DIASTOLIC between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BLOOD_PRESSURE_SYSTOLIC between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BODY_FAT_PERCENTAGE between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for HEIGHT between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for WEIGHT between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for LEAN_BODY_MASS between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for HEIGHT between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for BODY_TEMPERATURE between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for HEART_RATE between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for HEART_RATE_VARIABILITY_RMSSD between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for STEPS between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for DISTANCE_DELTA between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SPEED between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for RESPIRATORY_RATE between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_ASLEEP between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_AWAKE_IN_BED between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_AWAKE between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_DEEP between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_LIGHT between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_OUT_OF_BED between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_REM between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_UNKNOWN between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for SLEEP_SESSION between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for WATER between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for WORKOUT between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for RESTING_HEART_RATE between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for FLIGHTS_CLIMBED between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for NUTRITION between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for TOTAL_CALORIES_BURNED between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/FLUTTER_HEALTH(27115): Getting data for MENSTRUATION_FLOW between 2025-07-19T20:25:45.526Z and 2025-07-20T20:25:45.526Z, filtering by []
I/flutter (27115): Total number of data points: 0.
I/FLUTTER_HEALTH::SUCCESS(27115): returning 0 steps
I/flutter (27115): Total number of steps: 0
I/VRI[MainActivity]@26732cc(27115): call setFrameRateCategory for touch hint category=no preference, reason=boost timeout, vri=VRI[MainActivity]@26732cc
I/VRI[MainActivity]@26732cc(27115): onDisplayChanged oldDisplayState=2 newDisplayState=2

Screenshots

No response

Flutter Doctor Output

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.29.3, on Microsoft Windows [Version 10.0.26100.4351], locale en-US)
[√] Windows Version (11 Pro 64-bit, 24H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.5)
[√] Android Studio (version 2024.1)
[√] Connected device (4 available)
[√] Network resources

• No issues found!

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions