Is the above plugin works fine? I am not able to get the location co-ordinates by using it, I just need the value of co-ordinates instead of displaying in UI and pass the value when ever there is a method call on the portable project


  • AdamPAdamP AUUniversity ✭✭✭✭✭

    @Scorpian1990 - the above plugin does work as expected with this example code

    var locator = CrossGeolocator.Current;
    locator.DesiredAccuracy = 50;
    var position = await locator.GetPositionAsync (timeoutMilliseconds: 10000);

    There are quite a few caveats on Android and iOS. Windows Phone just needs 1 permission and it works well in the emulator.

    Make sure you have the right permissions and also an iOS 9 emulator apparently doesn't support getting GPS coordinates you will have to test on a real device.

    https://github.com/jamesmontemagno/Xamarin.Plugins/tree/master/Geolocator (look at the bottom)

Sign In or Register to comment.