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,