© Ahmed Bakir 2018
Ahmed BakirProgram the Internet of Things with Swift for iOShttps://doi.org/10.1007/978-1-4842-3513-3_4

4. Using HealthKit to Securely Retrieve and Store Health Data

Ahmed Bakir1 
(1)
devAtelier, Tokyo, Japan
 

So far, you have learned how to use the motion and GPS sensors on iOS devices to build a workout app called IOTFit, with the capabilities to track activity data (steps, altitude, step count) and display the user's workout path on a map. Additionally, you’ve learned how to store this data to a property-list (.plist) file inside the app’s Documents folder.

While it is useful to store data within one app, you can help the user even more by saving the data in a way that is accessible to other workout apps. For this purpose, you ...

Get Program the Internet of Things with Swift for iOS: Learn How to Program Apps for the Internet of Things now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.