Use CLLocationManager
Read moreWhat is NSLocationWhenInUseUsageDescription?
NSLocationWhenInUseUsageDescription. A message that tells the user why the app is requesting access to the user’s location information while the app is running in the foreground .
Read more