If you add the Geolocation plugin (but without changes) to your config.xml, you will find the following in your compiled Info.plist application:
<key>NSLocationWhenInUseUsageDescription</key> <string></string>
The result is that when you call the geolocation, the user is prompted
Allow the "app name" to access your location while using the app?
If in addition to the plugin you add the following to your config.xml:
<gap:config-file platform="ios" parent="NSLocationAlwaysUsageDescription" overwrite="true"> <string>WE RE LIKE TOTALLY TRACKING YOU OMG</string> </gap:config-file>
You will find the following in your compiled Info.plist application:
<key>NSLocationAlwaysUsageDescription</key> <string>WE RE LIKE TOTALLY TRACKING YOU OMG</string>
and the result will be that when you call the geolocation, the user is prompted
Allow the "application name" to access your location even if you are not using the application? WE WILL MAKE A FULL TRACKING FOR YOU OMG
After clicking the allow button in both scenarios, geolocation calls were successful
source share