cozie-app / cozie-apple

https://cozie-apple.app
GNU Lesser General Public License v3.0
15 stars 9 forks source link

Report time-series data in regular intervals #58

Closed mariofrei closed 2 months ago

mariofrei commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, time-series data, e.g., heart rate, is retrieved from the Apple Health Store when the app is opened on the phone. It would be nice if this data could be reported at regular intervals, e.g., every 10 minutes.

Describe the solution you'd like This could be done by defining a background task or with silent notifications. See here for more information: https://stackoverflow.com/questions/6255142/how-to-execute-a-function-in-background-at-specific-intervals-in-ios

Describe alternatives you've considered -

Additional context -

mariofrei commented 2 months ago

Reporting of HealthKit data in regular intervals is not possible because HealthKit data is only accessible if the Apple Watch or the iPhone is unlocked. (Source: https://stackoverflow.com/questions/30361033/healthkit-data-inaccessible-in-background)