Is it possible to get data from Healthkit the same way as you would query regular API (With user's consent) to store in my webapp?
Something like: healthkit.com/api/v1/user/GetWeight
If yes, where can I find a list of available methods? If not, are there any workarounds?
HealthKit is a framework with an API that allows displaying the health data collected by apps and wearables that are connected to Health. In the same fashion, developers should design consent forms to ask users to share their data collected in the Health app or through Apple Watch via HealthKit.
As for your web app counterpart, you can use transport mechanisms like URLSession and perhaps CloudKit. So basically without an iOS app its not possible to get data from apple watch. Data flow is like device -> your iOS app -> your webApp .
This data is stored in Data Protection class Protected Unless Open. Access to the data is relinquished 10 minutes after device locks, and data becomes accessible the next time user enters their passcode or uses Touch ID or Face ID to unlock the device.
You'll have to build:
Neither step is trivial. Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With