15 Replies Latest reply on Jan 15, 2018 10:36 AM by andersborglund

    cordova geo location

    venkateshg72779630 Level 1



      App version 1.0

      i have created the app with geo location with version 2.1.0

      <plugin name="cordova-plugin-geolocation" source="npm" spec="~2.1.0" />


      App version 2.0


      Here i have downloaded the 2.1.0 version and upload in my github (for some changes)

      <plugin spec="https://github.com/xxxxxxxxxxx/cordova-plugin-geolocation"/>


      i have added this code only


      if (code == kCLAuthorizationStatusAuthorizedWhenInUse) { //iOS8+

           __highAccuracyEnabled = enableHighAccuracy;

           if([[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationAlwaysUsageDescription"]) {

                [self.locationManager  requestAlwaysAuthorization];




      my updated code not working


      Please advice