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.
Is there anyway I can get this plugin function to wait for the user to says allow or disallow for the geo permissions?
Plugin in question https://github.com/apache/cordova-plugin-geolocation
Example function call:
navigator.geolocation.getCurrentPosition(geolocationSuccess,geolocationError,geolocationOptions);
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.