transistorsoft / transistorsoft/flutter_background_geolocation

[iOS] otherNavigation snapping to road since v5

Open
#1,707 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
732
Forks
285
PR merge metrics
No merged PRs in 30d

Description

A few years back we experience the issue of iOS devices 'snapping' the GPS track to the nearest road. For our users this is a major deal-breaker as they need a GPS track on the exact place where they were driving.

We then had this issue; https://github.com/transistorsoft/flutter_background_geolocation/issues/1027#issue-1687389690 that seemed to be solved by choosing for otherNavigation, which referes to the CLActivityType otherNavigation ( The value that indicates positioning for activities that don’t or may not adhere to roads such as cycling, scooters, trains, boats and off-road vehicles. )

So far so good. However with the introduction of plugin version v5 and above, we now have snapping roads again on iOS, whilst we still have otherNavigation as our activityType and high as desiredAccuracy...

Were there any changes in the plugin for which we might need to alter our configuration in a way to avoid snapping to road on iOS?

See below two tracks of a Android (below; actual track hitting the waypoint) and iOS (above; snapped track hence missing the waypoint). These two devices were in the exact same car at the same time. So the expected behaviour would be two near-similar tracks...
Image

Also when we look into the 'accuracy' value of the track; we can see for iOS it actually 'sees' the inaccurcy to the actual road itselfs; so it's aware of the snapping behaviour or something...
Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by reproducing the iOS behavior with plugin versions before and after v5 using activityType otherNavigation and desiredAccuracy high, then compare the resulting tracks and accuracy values with Android. Done means identifying the v5-related cause and confirming a configuration or plugin change that prevents iOS road snapping.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.