'HealthKit background fetch without observing
I want to make regular HealthKit requests in the background in a BGTask. I don't want to observe changes in HealthKit necessarily. Is this possible?
Solution 1:[1]
You should be able to query for HealthKit data in the background if your app is getting CPU run time. You just can't request authorization for data types since that prompts UI. If your app is authorized, then it should be able to read.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | psolanki |