Skip to content

pedometer: ^4.1.1  #1262

@bhargav-dev69

Description

@bhargav-dev69

I’m integrating the pedometer package in a Flutter app and facing these challenges:

  1. Hourly Data Handling
    The plugin provides cumulative steps with timestamps, but it’s unclear how to accurately calculate step counts for a given time range (e.g., hourly).
    Expected: A reliable method or example for identifying steps within specific intervals.

  2. Interval-Based Logic
    I attempted to store updated step counts every 10 minutes. However, the stream only emits values when the app/activity is in the foreground. When the app is backgrounded, terminated, or killed, no updates are received.
    Question: How can we ensure continuous background syncing or catch-up updates when the app resumes?

  3. Complete Aggregation Strategy
    I need best practices for managing step data in hourly, daily, and weekly formats using this package. Any recommended patterns or sample implementations would be valuable.

Additional information

Flutter version: 3.35+

Platform(s): Android (and/or iOS)

This functionality is critical for my use case, so any guidance or recommended approach would be greatly appreciated.

Thanks,
Bhargav

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions