How to enable health kit for universal app

Hi,

I have an app which is universal (runs on iPhone and iPad). The only non universal feature it has is the integration with Apple HealthKit. So to make it work on an iPAD I removed the device capability requirement for health kit from the InfoPList and ensured that I do a dynamic check using the "isHealthKitAvailable" method before using the feature. But I suspect that is causing my app to fail in the call to "requestAuthorizationToShareTypes" with the following error - "Failed to open database".

So my question is, can I have my app be universal and still support HealthKit integration? If yes, what is the correct way of doing it?


Thanks,

HK should still work on iPhone in that example. Try option-clean build folder and go again.

How to enable health kit for universal app
 
 
Q