-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NavigationView does not reroute if phone screen is off #750
Comments
Hey @jeffwasher, what version of the SDK are you using? Also, can you post the code you're using to set up the off-route listener you're talking about here? Thanks! |
Hi @danesfeder, I'm using mapbox-android-navigation-ui:0.11.0 Here's where I set the RouteListener (I've got an Activity holding a NavigationView):
Let me know if you need more. Thanks |
@jeffwasher you're only seeing this issue when the app is in the background? |
That's correct. The screen is off. The voice instructions continue to work until you go off route. Then silence. |
@devotaaabel now that #751 has landed 🎉 could you try to reproduce 👇 #750 (comment)
and 👀 if the issue is still present? |
@Guardiola31337 I have the same issue and I'm trying to implement this with 0.13.0-SNAPSHOT, but now I'm not getting any voice instructions :( Do I have to change something to get voice in 0.13? |
In 0.13 the reroute events are still not fired when the app is in background. |
cc @akitchen |
Navigation works when the phone screen is off, so I assume this is an intended use case. However if the User goes off route while the screen is off, no reroute action happens. Since NavigationViewModel.offRouteEvent and NavigationViewModel.isOffRoute are MutableLiveData, the reroute action won't fire and my RouteListener doesn't receive a call to onOffRoute.
The text was updated successfully, but these errors were encountered: