Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issue with Accuracy #331

Open
kavitap810 opened this issue Oct 5, 2020 · 0 comments
Open

Facing issue with Accuracy #331

kavitap810 opened this issue Oct 5, 2020 · 0 comments

Comments

@kavitap810
Copy link

Bug Information

Version Number of Plugin: 4.5.0.6
Device Tested On IOS Iphone XR, Android Moto G5+ and Windows surface pro laptop
Version of VS: Visual Studio for Mac version 8.7 ( build 2037)
Version of Xamarin: XF version 4.7.0.11179

Steps to reproduce the Behavior

  • Configure Xamarin forms project with DesiredAccuracy = 10 .
  • Invoke CrossGeolocator.Current.StartListeningAsync, with AllowBackgroundUpdates set to true, ActivityType - Fitness, DeferLocationUpdates - true , DeferralDistanceMeters - 3 Feet ,DeferralTime to 30 seconds.
  • When prompted for location access permission, select "Always".

After this, start getting the location coordinates, but the accuracy ( in meters) is coming very high.
Also, for the same location, it is giving different coordinates, as the accuracy(in meters) is coming high.

Expected Behavior

  1. Accuracy should be equal or near to the Desired Accuracy set.
  2. For the same location, the same coordinates should come.
  3. With setting DeferralDistanceMeters to 3 feet, the location should be obtained when there is a distance of 3 feet between coordinates

Actual Behavior

  1. DesiredAccuracy is 10 but Accuracy getting from the plugin is 65, 1000.. or higher values.
  2. For the same location, different coordinates are coming.
  3. Getting different coordinates for the same location repeatedly.

Code snippet

Geolocator.DesiredAccuracy = 10;
bool x = await Geolocator.StartListeningAsync(TimeSpan.FromSeconds(2), UnitConverters.InternationalFeetToMeters(3), false, new ListenerSettings
{
AllowBackgroundUpdates = true,
ActivityType = ActivityType.Fitness,
DeferLocationUpdates = true,
DeferralDistanceMeters = UnitConverters.InternationalFeetToMeters(3),
DeferralTime = TimeSpan.FromSeconds(30)
});

Can you please let me know, what could be the cause of the above issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant