``` HealthKit data is not available while the device is locked. You can start your HKObserverQuery while locked, but you will not receive callbacks and, if you are using background delivery, your app will not be launched for new data until the device unlocks and the Health database is available. ``` https://developer.apple.com/forums/thread/694223