mapbox / mapbox/mapbox-navigation-ios

[Bug]: When simulation starts under `inTunnels` mode the `NavigationService` failed to send out notification

Open
#3,679 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Core jira-sync-complete
Dominant language
Swift
Stars
918
Forks
326
Avg merge
1h 16m
Merged PRs (30d)
3

Description

Mapbox Navigation SDK version

v2.1.1

Steps to reproduce
  1. Open Example, set the navigationViewController.navigationMapView?.userLocationStyle = .puck2D()
  2. Set the location to a still customer location, build the app.
  3. Unselect the simulationButton, to choose the inTunnels simulation mode.
  4. start navigation and wait till the simulation start
Expected behavior

The map puck will move because the NavigationService.simulate(intent:) is called to send out notification of simulation starts, and the NavigationViewController could set up simulated location provider for map puck.

Actual behavior

The map puck is stale because NavigationService.simulate(intent:) is not called.

Is this a one-time issue or a repeatable issue?

repeatable

Contributor guide

Open the contributing guide

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

Start with NavigationService.simulate(intent:) and the inTunnels simulation path described in Example, then compare it with the simulationButton path. Reproduce the stale puck behavior and trace whether the simulation-start notification is sent. Done means the inTunnels path notifies NavigationViewController so the simulated location provider can update the map puck.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.