mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
716 stars 213 forks source link

Location update very slow and inaccurate only on iOS #1867

Open timse1993 opened 2 years ago

timse1993 commented 2 years ago

Hello,

I am using the Mapbox SDK(2.1.1) to place points on a map across a city and trigger location based content whenever you get close enough to a certain point on the map. My scene is based on the LocationBasedGame Example provided by Mapbox.

On Android (currently testing on a Galaxy A71) everything works fine. Location Marker on the map is updated every few meters and no problem reaching the desired point on the map. On iOS however (iPhone 13 pro and iPhone 7) the location updates are very slow and inaccurate. I have to walk about 20-30 meters before the locations gets updated on the map. This doesn't lead to my app not working at all, but it is a huge inconvenience for the users which ist not occurring on Android phones (some might even get the impression the app doesn't work at all).

I tried different Unity Versions (currently on 2020.3.18f1 LTS) and also different settings for Mapbox Location Providers (desired accuracy, update time, update distance). Nothing helped and I have no clue why it does work perfectly on Android but is so lacking even on an iPhone 13 pro.

Any help or idea what might cause this behavior would be really helpful.

Best regards,

Tim

PS: When I start the app while moving fast and not walking (i.e. driving in a bus) the location gets updated very frequently on the map. So this doesn't seem to be a time based issue but rather a distance based one).

gisinator commented 1 year ago

Unfortunately, I have no solution, but I am facing exactly what you describe. Everything works on Android, but updates on my iPhone X testdevice are inconsistent and seem to also just hold for a while sometimes. Hope that someone can help here

alexgovo commented 5 months ago

did you find a solution?