Although this question is much older, I found similar questions here and here .
For my permission, I had to add NSLocationWhenInUseUsageDescription to the NSLocationWhenInUseUsageDescription file. However, I suppose since my geolocation plugin was deprecated, I had to update it first. Then I had to remove / add the ICOS platform of Cordoba. Finally, I added NSLocationWhenInUseUsageDescription to the .plist file.
First remove / add the geolocation plugin:
cordova plugin rm org.apache.cordova.geolocation cordova plugin add org.apache.cordova.geolocation
Secondly, uninstall / add the iOS platform:
cordova platform rm ios cordova platform add ios
Finally, add NSLocationWhenInUseUsageDescription to the .plist. Open /platforms/ios/{project}/{project}-Info.plist and add the following:
<key>NSLocationWhenInUseUsageDescription</key> <string>[App Name] would like to access your location when running and displayed.</string>
See the iOS Developer Library link for more information on NSLocationWhenInUseUsageDescription vs. NSLocationAlwaysUsageDescription compared to NSLocationUsageDescription .
trailing slash Jun 09 '15 at 20:56 2015-06-09 20:56
source share