Post

Replies

Boosts

Views

Activity

Comment on HealthKit on iPadOS 17 beta2 returns false with isHealthDataAvailable() method
I have an app that uses HealthKit. In Testflight it is possible to install it on iPhone but not on iPad (17.0.3). But I can install it from Xcode on iPad. In app store it offers to install on iPad, but if you do, there comes an alert saying that this is not compatible. It looks like there is in Testflight and in the installation process from app store some code that checks only if this is an iPad and says no and not if this is an device that can run apps that require HealthKit.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Comment on HealthKit on iPadOS 17 beta2 returns false with isHealthDataAvailable() method
I have a second and rare problem. If an app request authorization first time to access health data, sometimes the request will never be shown to the user. It mostly appears if the health app was never started before, e. g. on an simulator. But it also appears on real devices. Maybe there has a data base to be initialized first and the request gets lost on some timing issues.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Comment on HealthKit on iPadOS 17 beta2 returns false with isHealthDataAvailable() method
It seams that I have also solved the second problem. I use a view modifier to start the initially query. I started it in onAppear which seams to be to fast. Some log messages pointed to problems with the presentation of the authorization controller, out of view hierarchy and such things. I changed to task and now it works without problem so far.
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’23