My flutter is compiling and running on the simulator which is iPhone 11 (13.4). I'm invoking geolocator like so:
geolocator
.getCurrentPosition(desiredAccuracy: LocationAccuracy.best)
.then((Position position) {
setState(() {
_currentPosition = LGPSHelper.gpsToString(
new GeoPoint( position.latitude, position.longitude ) );
});
}).catchError((e) {
print(e);
});
It is catching the following error:
flutter: PlatformException(ERROR_MISSING_PROPERTYKEY, To use location in iOS8 you need to define either NSLocationWhenInUseUsageDescriptionor NSLocationAlwaysUsageDescription in the app bundle's Info.plist file, null)
I have the target iOS set to 13.0 everywhere I can think of, but still the iOS8 error persists. I know I could just add the parameter, but it makes me nervous that somewhere the build thinks I'm targeting iOS8. I've cleaned, rebuilt, etc. Any suggestions?