react-native-healthkit
react-native-healthkit copied to clipboard
Background mode not working on iOS simulator
Hi @robertherber !
Fist of all, thanks for this super cool library! I've seen since I updated the xcode version to the v15 that the background refresh has stopped working. Well, I first saw this issue in the useStatisticsForQuantity hook, but also in useSubscribeChange which makes sense as it is used in the first one! I'm using expo v50, in case it helps you to know it. Can it be that we are missing a commit like 7ecfd9b for Xcode15?
I attach here a chunk of code using the hook mentioned above
const energy = useStatisticsForQuantity(
HKQuantityTypeIdentifier.activeEnergyBurned,
[HKStatisticsOptions.cumulativeSum],
from,
undefined,
UnitOfEnergy.Kilocalories
)
Thanks!!
@presedo93 Are you using the new architecture. Could it be related to #106?
Please try v9