-
Couldn't load subscription status.
- Fork 752
Description
I’m integrating the pedometer package in a Flutter app and facing these challenges:
-
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. -
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? -
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