react-native-healthkit icon indicating copy to clipboard operation
react-native-healthkit copied to clipboard

Background mode not working on iOS simulator

Open presedo93 opened this issue 1 year ago • 1 comments

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 avatar Mar 19 '24 18:03 presedo93

@presedo93 Are you using the new architecture. Could it be related to #106?

robertherber avatar Nov 29 '24 08:11 robertherber

Please try v9

robertherber avatar Jun 17 '25 11:06 robertherber