title: Phonegap access user location Info.plist
body: <p>I have an app that uses the user's location to find landmarks they are near. After submitting my Phonegap app to the iOS store, it is getting rejected for the following reason:</p>
  
  <p>"We noticed that your app requests the user’s consent to access their location but does not clarify the use of the location in the applicable purpose string. Please revise the relevant purpose string in your app’s Info.plist file to specify why the app is requesting access to the user's location. You can modify your app's Info.plist file using the property list editor in Xcode."</p>
  
  <p>I thought I had addressed this issue by adding the following to my config.xml file:</p>
  
  <pre><code>&lt;edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge"&gt;
          &lt;string&gt;The user's location is used to find the distance they are from certain landmarks.&lt;/string&gt;
  &lt;/edit-config&gt;
  </code></pre>
  
  <p>config.xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="com.phonegap.myapp" version="1.0.10" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"&gt;
      &lt;name&gt;MyApp&lt;/name&gt;
      &lt;preference name="android-targetSdkVersion" value="26"/&gt;
      &lt;description&gt;
          A blank PhoneGap app.
      &lt;/description&gt;
      &lt;plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" /&gt;
      &lt;plugin name="cordova-plugin-geolocation" spec="2.4.3" /&gt;
      &lt;plugin name="cordova-plugin-x-socialsharing" spec="5.4.0" /&gt;
      &lt;edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge"&gt;
          &lt;string&gt;The user's location is used to find the distance they are from landmarks.&lt;/string&gt;
      &lt;/edit-config&gt;
      &lt;icon src="images/icon.png" /&gt;
      &lt;icon height="40" platform="ios" src="images/icon40.png" width="40" /&gt;
      &lt;icon height="76" platform="ios" src="images/icon76.png" width="76" /&gt;
      &lt;icon height="120" platform="ios" src="images/icon120.png" width="120" /&gt;
      &lt;icon height="152" platform="ios" src="images/icon152.png" width="152" /&gt;
      &lt;icon height="1024" platform="ios" src="images/icon1024.png" width="1024" /&gt;
      &lt;author email="support@phonegap.com" href="http://phonegap.com"&gt;
          PhoneGap Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>However, it is still getting rejected for this reason. How could I modify the config.xml or anything else to not get rejected for this reason on the iOS store?</p>