App is Not Receiving Healthkit Background Delivery

I am trying to figure out why my app is not receiving background deliveries from Healthkit. I have a successfully implemented HKObserverQuery  which is being used to send data like step count to a server. I have a successful enableBackgroundDelivery (completes without errors). I have also checkmarked the HealthKit Background Delivery and Clinical Health Records options in my app's Signing and Capabilities configurations. I know the observer is functional because the health data gets sent to the server when the app is running. The problem is I haven't seen any evidence of the observer handler being triggered when the app is not running. What am I missing? And what is the best way to go about debugging what is going wrong?

This topic was somehow discussed here and here. You can check if they help.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

App is Not Receiving Healthkit Background Delivery
 
 
Q