GeolocatorPlugin icon indicating copy to clipboard operation
GeolocatorPlugin copied to clipboard

iOS get wrong Location

Open Billaehbong opened this issue 3 years ago • 3 comments

Hey everyone,

i have an issue on iOS devices. I think it is an bug on apples side, but maybe you have an idea.

Im using this setup for the locator. And this works fine.

await CrossGeolocator.Current.StartListeningAsync(TimeSpan.FromSeconds(1), 1, true, new Plugin.Geolocator.Abstractions.ListenerSettings { ActivityType = Plugin.Geolocator.Abstractions.ActivityType.Fitness, AllowBackgroundUpdates = false, DeferLocationUpdates = true, DeferralDistanceMeters = 1, DeferralTime = TimeSpan.FromSeconds(1), ListenForSignificantChanges = false, PauseLocationUpdatesAutomatically = false });; CrossGeolocator.Current.PositionChanged += Current_PositionChanged; } catch(Exception ex)

But now i have the following problem:

As you can see in the attachet Video i have sometimes the problem to get a wrong location. First you see my app ReportATree, there you can see the wrong position first. Then i open the Maps app from apple and there you see that the position flys to my actual position. Then i open again ReportATree and you see now the position is correct.

I think the setup below asks for the last known location from the apple device. And this location is sometimes wrong as you can see in the video. On the wrong location i have never been before this day.

Has any one else this problem? Have i made a mistake in the setup?

https://user-images.githubusercontent.com/77233082/110068720-91c2ae80-7d76-11eb-90a5-eb4c7ac751e6.mp4

Billaehbong avatar Mar 05 '21 04:03 Billaehbong

Hi. Same problem for me. Did you fix it ?

charmosz avatar Aug 10 '21 08:08 charmosz

@charmosz not i didnt. Seems that it is a apple bug. I sended this bug via apple feedback assistent. They would have a profile to see what happens, but i hadn't time for this at the moment.

Billaehbong avatar Aug 20 '21 04:08 Billaehbong

Ok. Let me know if you get a fix. Hope that it will come soon in Xamarin Essentials, see https://github.com/xamarin/Essentials/issues/1447

charmosz avatar Aug 20 '21 07:08 charmosz