Disable background location as recommended in flutter-geolocator.
---
ios/Podfile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ios/Podfile b/ios/Podfile
index d97a417..d776f68 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -42,5 +42,11 @@ post_install do |installer|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
+
+ if target.name == "geolocator_apple"
+ target.build_configurations.each do |config|
+ config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'BYPASS_PERMISSION_LOCATION_ALWAYS=1']
+ end
+ end
end
end
--
2.39.3 (Apple Git-145)