IOS 8: CLVisit in CoreLocation
I'm trying to use the new CLVisit feature in my app to monitor user visit, I followed WWDC-14 video and implemented everything, but locationManager: didVisit doesn't ring at all. I set the NSLocationAlwaysUsageDescription key, turned on the background "Location Updates" in Capabilities and included the following in my class's ViewDidLoad:
_locationManager = [[CLLocationManager alloc] init]; _locationManager.delegate = self; [_locationManager requestAlwaysAuthorization]; [_locationManager startMonitoringVisits];
In min. TIME there is no documentation required to stay in a specific place to visit or anything in the DISTANCE between places. I tried to test it with a GPX file and in the building, staying in different locations for over 10 minutes, but locationManager: didVisit delegate didn't start.
Please help me how to check CLVisits, or if I missed anything in the code.
source to share