Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

$cordovaGeolocation.getCurrentPosition always returning “Position retrieval timed out.” in ios

$
0
0

Hi,

I'm using Cordova 4.3.1,with cordova-plugin-geolocation 1.0.1, in ionic 1.7.8. (All searches with the following error point to older versions, and say this one should work fine)

When I use

    $cordovaGeolocation.getCurrentPosition(posOptions).then(function (data) {
  deferred.resolve({latitude : data.coords.latitude,longitude : data.coords.longitude});
}, function (err) {
  deferred.resolve({latitude : null,longitude : null});
      console.log(err);
  });

I always get "Position retrieval timed out."

The application works fine on Android.

And retrying the same on ios i found out that :

The application is not asking me permission to get my location

If I try to debug it on ios, CDVLocation.m is not being accessed

The location icon in the top bar is not displaying.

Is there anything wrong in my configuration ?

Anything i should add to ios or config.xml ?

Thanks,


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>