Skip to content

[codex] Propagate total kcal to Apple Watch#4724

Draft
cagnulein wants to merge 10 commits into
masterfrom
codex/watch-total-kcal-4723
Draft

[codex] Propagate total kcal to Apple Watch#4724
cagnulein wants to merge 10 commits into
masterfrom
codex/watch-total-kcal-4723

Conversation

@cagnulein

Copy link
Copy Markdown
Owner

Summary

Fixes #4723 by carrying total kcal through the iPhone/iPad to Apple Watch data path.

Changes

  • Include totalKcal in the iPhone WatchConnectivity reply used by the watch app.
  • Parse TOTALKCAL= from the iPad relay message into WatchKitConnection.totalKcal.
  • Copy the received watch-side totalKcal into WorkoutTracking.totalKcal so the existing HealthKit workout save logic can write totalEnergyBurned separately from active kcal.

Validation

  • Ran git diff --check on the modified files.
  • iOS/watchOS build was not run in this Linux environment.

Copy link
Copy Markdown
Owner Author

Follow-up added for the Live Activity heart-rate issue shown in the screenshots.

Root cause: workoutTrackingUpdate used a single heartRate argument for both HealthKit workout samples and the Live Activity. When HR came from HealthKit/Apple Watch, QZ intentionally passed 0 to avoid writing a duplicate HR sample back into HealthKit; the lock-screen Live Activity then displayed that same 0, while Dynamic Island compact could still show the configured compact metric value.

Fix: split the values so HealthKit workout tracking can still receive 0 for watch-sourced HR, while Live Activity receives the actual current HR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQ]

1 participant