mapbox / mapbox/mapbox-navigation-ios
[Bug]: Multiple telemetry events for one action in CarPlay scenario.
@MaximAlien is already working on this.
Since Oct 18, 2021.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.