I am working on an app that has an HKObserverQuery
that starts immediately when the view is loaded. That HKObserverQuery
calls to a function that executes an HKStatisticsQuery
that can retrieve the sum of all the step count
for today.
When I started the App. I allowed the App to read the counts. Total step count
where available.
After a few mins. I decided to block the permission to read the step count
count.
When I come back to the app, it still updates itself with the new step count
counts.
Is this some bug? should the app be able to read new data even when it does not have permission to access the HealthKit
.