mapbox / mapbox/mapbox-navigation-ios

func navigationViewControllerDidDismiss(_ navigationViewController: NavigationViewController, byCanceling canceled: Bool) { self.dismissNavigation() }

Open
#4,817 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

### Mapbox Navigation SDK version

3.18.0

### Steps to reproduce

func navigationViewControllerDidDismiss(_ navigationViewController: NavigationViewController, byCanceling canceled: Bool) {
self.dismissNavigation()
} 导航页面都关闭了,还是后台播报导航,还有一个问题导航页面关闭后,重新发起导航提示Fatal error: MapboxNavigationProvider was instantiated twice

### Expected behavior

func navigationViewControllerDidDismiss(_ navigationViewController: NavigationViewController, byCanceling canceled: Bool) {
self.dismissNavigation()
} 导航页面都关闭了,还是后台播报导航,还有一个问题导航页面关闭后,重新发起导航提示Fatal error: MapboxNavigationProvider was instantiated twice

### Actual behavior

func navigationViewControllerDidDismiss(_ navigationViewController: NavigationViewController, byCanceling canceled: Bool) {
self.dismissNavigation()
} 导航页面都关闭了,还是后台播报导航,还有一个问题导航页面关闭后,重新发起导航提示Fatal error: MapboxNavigationProvider was instantiated twice

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

one-time

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 the navigationViewControllerDidDismiss(_:byCanceling:) callback and trace dismissNavigation(), then inspect how navigation audio and MapboxNavigationProvider lifecycle are handled after dismissal. Reproduce the background announcements and the subsequent “MapboxNavigationProvider was instantiated twice” fatal error; done means both repeatable behaviors have a documented or verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.