health_workout_sync 0.1.1
health_workout_sync: ^0.1.1 copied to clipboard
Sync workouts from Apple Health and Health Connect (Samsung Health, Garmin, Fitbit, Oura…) into your backend, in the background, without losing or duplicating any.
Changelog #
All notable changes to this package are documented here. The format follows Keep a Changelog and the package uses Semantic Versioning (see RELEASING.md).
0.1.1 #
- README: pub version, pub points, CI and license badges.
- README: ready-to-paste Android backup rules to make a reinstall start a fresh sync (section 8.8).
0.1.0 #
First public release.
- Workout sync from Apple Health (HealthKit anchored queries) and Health
Connect (changes tokens). The sync position only advances once every
workout is settled by your
WorkoutImporter, so failures never lose a workout; a recent-window safety sweep catches anything missed. - Background sync: HealthKit background delivery into a headless Flutter engine on iOS; a WorkManager periodic job on Android with a user-settable interval (default 1 hour, minimum 15 minutes).
- Cross-isolate lock so foreground and background syncs never overlap.
availability()/installHealthConnect()for Android 9–13, where Health Connect is a Play Store app.requestNotificationPermission(),notificationsEnabled()andnotify()for local notifications from background syncs.- Third-party app guidance:
FitnessAppGuide(18 apps, Health Connect and Apple Health steps),fitnessApps()(which apps share / are installed) and the ready-madeHealthSharingRemindercard. openHealthSettings(page:)— this app's permissions or every app's sharing.- Android: Health Connect's required privacy-policy screen, permissions and
package-visibility queries are merged into the host app; the host only adds
a
health_workout_sync.privacy_policy_urlmeta-data entry.