mapbox / mapbox/mapbox-navigation-ios

[Bug]: Multiple telemetry events for one action in CarPlay scenario.

Open
#3,482 1 comment 0 reactions 1 assignee View on GitHub

@MaximAlien is already working on this.

Since Oct 18, 2021.

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

Description

### Mapbox Navigation SDK version

v2.0.0-rc.5

### Steps to reproduce

1. Start Example app with CarPlay
2. Observe events:
- sendPassiveNavigationStart
- sendPassiveNavigationStop

### Expected behavior

Only one of this event per action is reported.

### Actual behavior

Two events are reported per one action.

## Root cause

CarPlay controller instantiates its own `PassiveLocationManager` and there are two of them in total in a Car Play use case. It causes the events above to be called twice: one from the main app and one from the CarPlay.

### 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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.