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

2. Using Core Location to Build a Workout Tracking App

Ahmed Bakir1 
(1)
devAtelier, Tokyo, Japan
 

In the first chapter, you learned how to use Xcode and Interface Builder to set up the project for the IOTFit workout app and create its user interface. However, due to the complicated setup process, you did not have an opportunity to make it a true Internet of Things (IoT) app by accessing the GPS hardware on the phone. In this chapter, you will learn how to take advantage of Apple’s Core Location framework to request location permission from the user, receive periodic updates on the user’s location, and plot those locations on a ...

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.