I switched to HKAnchoredObjectQuery since HealthKit queries require an unlocked device, but the callback stops working after a few updates, preventing POST requests.
I’d like to share my full implementation and code.
https://github.com/FerFuentes/HealthKitManager/blob/main/Sources/HealthKitManager/Private/Activity/HKMWalkingActivity.swift
Thank you in advance for your help! I really appreciate it.
Best regards,
Fer Fuentes
Topic:
Programming Languages
SubTopic:
Swift
Tags: