Has anyone else had issues with enableBackgroundDeliveryForType
with HealthKit? It works perfectly on my iPhone 4s - I can see NSLog statements running in the background, and I get the UILocalNotification that I set up in the associated observer query - but it is only working sporadically on my iPhone 5s.
On the 5s, I've gotten only a handful of notifications when I try entering data through the Health app (even though performing the same steps on the 4s works just fine). Most of the time, I don't get any notifications when my app is in the background, but when I bring it to the foreground I get all the notifications right away.
I know the code isn't the issue, since it's working fine on one device and it has worked on the 5s as well, just rarely. I've also tried rebooting my phone and uninstalling/reinstalling the app.