BGHealthResearchTaskRequest beyond Health Research apps

Please could you give access to BGHealthResearchTaskRequest beyond Health Research apps.

I can't see any rational why this API is restricted to Health Research apps.

Without it, it is impossible to provide a decent UX based on historical data.

Thanks,

Stéphane

FB22560687

Answered by Engineer in 892757022

Depending on your use case and the kind of historical data you need, a HealthKit observer query with background delivery may be a good fit. Once registered, the system wakes your app whenever new samples are written to HealthKit, letting you fetch just the new data and update your local state. That would help you keep your app's state current in near-real-time without the BGHealthResearchTaskRequest. Let us know if that route would work for your use case.

Hello @stef2nice ,

Thank you for your post.

This is good feedback, im sure the team will be interested in the report.

Do note: Apple does not discuss future plans on the Apple Developer Forums or reasons for internal decisions on the Developer forums, let us know if you have a question about a project or framework you are currently using.

 Travis

Depending on your use case and the kind of historical data you need, a HealthKit observer query with background delivery may be a good fit. Once registered, the system wakes your app whenever new samples are written to HealthKit, letting you fetch just the new data and update your local state. That would help you keep your app's state current in near-real-time without the BGHealthResearchTaskRequest. Let us know if that route would work for your use case.

No, you have too little time for background processing (around 10 seconds). Why Health Research apps need BGHealthResearchTaskRequest and not any regular apps?

BGHealthResearchTaskRequest beyond Health Research apps
 
 
Q