ioscordovaapp-store-connectphonegap-build

The app's Info.plist must contain NSLocationAlwaysUsageDescription & NSLocationWhenInUseUsageDescription.


I am facing issue while building ipa file in iTunes connect.

How to resolve this I am building apk through PhoneGap Build.

here are issues which I am facing

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data.


Solution

  • I have tried with these two working solutions. Now it's working

     <plugin name="cordova-plugin-geolocation">
             <variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="App would like to access the location." />
            <variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="App would like to access the location." />
     </plugin>
    

    OR

    <plugin name="cordova-custom-config" version="*"/>
    <config-file overwrite="true" parent="NSLocationAlwaysUsageDescription" platform="ios" target="*-Info.plist"> <string>Allow the app to know your location</string> </config-file>
    <config-file overwrite="true" parent="NSLocationWhenInUseUsageDescription" platform="ios" target="*-Info.plist"> <string>Allow the app to know your location</string> </config-file>