Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

CrossGeolocator.Current.GetPositionAsync() not working

$
0
0

Hello,

I'm using plugin.geolocator for getting latitude and longitude of the device. It's working fine on some Android device but it is not working for some device.

Working Device = Samsung,
Not Working Device = Motorola(MotoG)

Below is my code.

var locator = CrossGeolocator.Current; locator.DesiredAccuracy = 10; var _position = await locator.GetPositionAsync(TimeSpan.FromSeconds(10));


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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