CrossGeolocator is not supported

abhay27abhay27 Member ✭✭

hello,
This is my code:

               if (CrossGeolocator.IsSupported)
              {
                var locator = CrossGeolocator.Current;
                locator.DesiredAccuracy = 50;

                var position = await locator.GetPositionAsync(timeout: TimeSpan.FromMilliseconds(10000));

                activityMainData.Longitude = position.Longitude.ToString();

                activityMainData.Latitude = position.Latitude.ToString();

                activityMainData.Altitude = position.Altitude.ToString();
            }

here CrossGeoLocator.IsSupported return False.
Help me.
Thanks InAdvance.

Answers

Sign In or Register to comment.