title: "Location Permission Denied" on ios simulator even after setting custom location in Features->Location->customlocation
body: <p>I am new to mobile development. I am trying to access my current location in the ios simulator running IOS 14.4 and I keep getting the &quot;Location Permission denied&quot; error even after setting up the <strong>custom location in the simulator</strong> as suggested by some answers on this platform, <a href="https://stackoverflow.com/questions/41539652/permission-denied-geolocation-in-react-native">here</a>. The code that I am running is this</p>
  <pre><code>Geolocation.getCurrentPosition(
      position =&gt; {
        this.setState({
          latitude: position.coords.latitude,
          longitude: position.coords.longitude,
          coordinates: this.state.coordinates.concat({
            latitude: position.coords.latitude,
            longitude: position.coords.longitude
          })
        });
      },
      error =&gt; {
        Alert.alert(error.message.toString());
      },
      {
        showLocationDialog: true,
        enableHighAccuracy: true,
        timeout: 20000,
        maximumAge: 0
      }
    );
  </code></pre>
  <p>I have set up these permissions in my info-plist.</p>
  <pre><code>&lt;key&gt;NSLocationAlwaysAndWhenInUseUsageDescription&lt;/key&gt;
  &lt;string&gt;Description&lt;/string&gt;
  &lt;key&gt;NSLocationAlwaysUsageDescription&lt;/key&gt;
  &lt;string&gt;Will you allow this app to always know your location?&lt;/string&gt;
  &lt;key&gt;NSLocationWhenInUseUsageDescription&lt;/key&gt;
  &lt;string&gt;Do you allow this app to know your current location?&lt;/string&gt;
  </code></pre>
  <p>I am not entirely sure what I might be doing wrong here. This is the only code currently that tries to access the location.</p>
  <p><em><strong>Is there any other reason why this error should persist even after setting the current location as the custom location in Features-&gt;Location-&gt;customlocation? as suggested by the other answers on this platform.</strong></em></p>