Now that we have prepared the info.plist file for location tracking, it is time to write the actual code that will track the location of the user. If we don't set the CLLocationManager to not pause location updates, location updates can be paused automatically by iOS when the location data is unlikely to change. In this app, we don't want that to happen because we want to save the location multiple times so that we can establish whether a user visits a particular location frequently. Let's set this up by going through the following steps:
- In the MeTracker.iOS project, open the LocationTrackingService.
- Add a private field for the CLLocationManager.
- Create an instance of the CLLocationMananger in the StartTracking ...