This code is working fine with ios < 11
import GoogleMaps
define delegate CLLocationManagerDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
self.locationManager.requestAlwaysAuthorization()
self.locationManager.requestWhenInUseAuthorization()
self.locationManager.delegate = self
self.locationManager.startUpdatingLocation()
return true
}
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
let objLAt = manager.location?.coordinate.latitude
let objLong = manager.location?.coordinate.longitude
print(objLAt)
print(objLong)
}