Cordova geolocation, wait for user permissions
<p>I have a Cordova app and the first thing it does is check the users location when the app is started. The issue is that if this is the first time the user is starting the app (on iOS), the geolocation plugin does not wait for the user to say yes or no to the geo permissions dialog that iOS brings up.</p>

<p>Is there anyway I can get this plugin function to wait for the user to says allow or disallow for the geo permissions?</p>

<p>Plugin in question <a href="https://github.com/apache/cordova-plugin-geolocation" rel="nofollow noreferrer">https://github.com/apache/cordova-plugin-geolocation</a></p>

<p>Example function call:</p>

<pre><code>navigator.geolocation.getCurrentPosition(geolocationSuccess,geolocationError,geolocationOptions);
</code></pre>

<p>When I start the app up for the first time I get the iOS permissions prompt but I can see in the background that the function call has already dropped into the error function.</p>