Michael Womick
Michael Womick

Reputation: 1

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?

Upvotes: 0

Views: 160

Answers (1)

psolanki
psolanki

Reputation: 411

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.

Upvotes: 1

Related Questions