Remove unnecessary expo-location plist NSLocation* entries

Please provide the following:

  1. SDK Version: 47
  2. Platforms(Android/iOS/web/all): iOS

I’ve noticed the expo-location config plugin always adds all of the NSLocation plist entries, even when only foreground permissions are required. Specifically I mean the NSLocationAlwaysUsageDescription and NSLocationAlwaysAndWhenInUseUsageDescription entries. In our app we request permission via useForegroundPermissions so as far as I know we do not need the “Always” options. Is there a reason these are always added? i.e. will the app store complain without these values because other code in the react-native libs uses the background apis, even though our app code itself doesn’t?

If they are not strictly required - is there a way to remove then in a managed app? I know how I could change the value but is there a way to remove the values set by the plugin?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.