Open aardvarkk opened 3 years ago
I do not seem to have the same problem running my example in the emulator, so it seems related to either this specific device or all physical devices. I am going to test on another Android device to see if it performs better.
Scratch that. I am also able to reproduce this in the Pixel 2 emulator at API Level 30. The instructions work for a fair amount of time, but then the instruction events stop arriving at some point.
Hi @aardvarkk
Could you please try to reproduce it in voice-navigation sample? As I receive all instructions along the routes in this app. I simply added listener:
private NavigationManager.NewInstructionEventListener m_instructionEventListener =
new NavigationManager.NewInstructionEventListener() {
@Override
public void onNewInstructionEvent() {
m_callbackCount++;
String info = "Received instruction #" + m_callbackCount;
Toast.makeText(m_activity, info, Toast.LENGTH_SHORT).show();
}
};
// start listening for navigation events
m_navigationManager.addNewInstructionEventListener(new WeakReference<>(m_instructionEventListener));
Also, you can download and select voice package within this app in order to hear instruction announcements during active navigation.
Please share your sample code which causes issues.
Describe the bug
When I simulate a route, I only receive a few "new instruction event" callbacks and then they stop firing despite the route simulation continuing as normal.
Steps To Reproduce Steps to reproduce the behavior:
Expected behavior New instruction callbacks should be fired for every turn along the route
Smartphone (please complete the following information):
Additional context It seems like it's somehow time-related. It's variable -- sometimes I'll get the first 3 instructions, sometimes 4. I increased the speed of the simulated route and got an additional instruction along the path I hadn't yet received, so it's almost like I get about 10 seconds or so of new instruction events before they stop completely. I'm not seeing any errors popping up indicating any kind of problem.