I installed the geolocation plugin in cordova
cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="your usage message"
I noticed that with android it works well, but with ios no.
to solve the problem I inserted this rule into the info.plist.
<string>NSLocationWhenInUseUsageDescription</string> <key>Test geo iphone</key>
After entering this rule the app finally asks me permission to detect the position.
Why cordova does not automatically insert this rule in the info.plist file?