© 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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.