[Bug]: Screen keep moving while on navigation in Carplay
santoso8118 opened this issue · 5 comments
Mapbox Navigation SDK version
2.17.0
Steps to reproduce
While in navigation at crossroads the screen keep moving to other place then focus on current location again multiple times
Expected behavior
Camera should focus and follow user current location while in navigation
Actual behavior
Camera keep moving to other location then move back to user current location multiple times
Uploading WhatsApp Video 2024-03-07 at 09.27.19.mp4…
Is this a one-time issue or a repeatable issue?
repeatable
Recorded video for the issue:
https://github.com/mapbox/mapbox-navigation-ios/assets/115057723/02a3916f-82f0-4ce1-9d93-3e873f9ebefc
Hi @santoso8118
Could you please share with us the sample project to reproduce the issue?
Do you use a real device or a simulator for testing? Do you enable route navigation emulation or use any other coordinate emulation mechanism, e.g. GPX file?
@kried Kre
Sorry we don't have sample project to reproduce the issue. It is reported issue from our user. They are using our app and driving on road with real device. We don't simulate it for testing or using GPX file to simulate user's location.
Hi
The possible situation when the camera keeps randomly moving is when the previous navigation session was not finished and it can still pass the camera updates.
Please, make sure that you call endNavigation(feedback:), stop(), or that you deinitialize the previous instances of NavigationService and NavigationViewController.
@kried
Thank you for your feedback !
I checked our implementation already call stop() when navigation end but we never call endNavigation(feedback:)
From the document I see that the only way to end navigation session is we need to call endNavigation(feedback:).
I will update code to call endNavigation(feedback:) when user end navigation and see.