Navigation Listeners not responding, Android Navigation Sdk.

10 posts / 0 new
Last post
Hitch-Hyke
Navigation Listeners not responding, Android Navigation Sdk.

Hi
 I am working on Android navigation sdk , and i had implimated  "EtaResponseListener" and "ProgressListener" but none of the "EtaResponseListner" methords get called and from "ProgressListener"  "onDestinationReached"  never get called , i had added multipal wayoints.
 

 


MQBrianCoakley
The eta listener only gets

The eta listener only gets called if there is NEW eta. The new eta has to be different from the existing eta.

What destination was provided (mqid or latlng)?

Also what location service provider is the app using: Madden, Google?

Can you post a pic of the map when the destination listener is expected?

Can you grab the location logs from the location update callback 5 minutes before arriving?


Hitch-Hyke
What destination was provided

What destination was provided (mqid or latlng)?  : LatLng.
Also what location service provider is the app using: Madden, Google : its Mapzen (LostAPiClient)

Now the onDestinationReached get called but Eta Request Failed with error code 403 and also the UpComing Maneuver Update giving null all the time.

 


MQBrianCoakley
Thanks for that info -

Thanks for that info - however in order to be able to look at this issue we have to be able to reproduce it which requires the actual information used to create the route, and to know the locations at the times you got null maneuvers or failed destination arrival events. 

We are changing to the Google location provider for our sample apps and we strongly recommend using the Google location provider as a first step. We've found that MapZen can be unreliable on certain devices and cause  various issues that are difficult to debug.

If you continue to see issues after switching to the Google Fuze location provider, please provide us with the actual values of:
starting lat/lng
destination lat/lng
logging statements of the location observer callback
Erroneous callback results.

Thanks.


Hitch-Hyke
Here is the log i had

Here is the log i had captured.
......................................................

2018-06-23 16:08:46.93 +0530 IST W Map Quest Single :  Logcat:0 logcat   WAy point at:0 :25.7342109,-80.4073564
2018-06-23 16:08:46.93 +0530 IST W Map Quest Single :  Logcat:0 logcat   WAy point at:1 :25.749744499999995,-80.4108242
2018-06-23 16:08:46.93 +0530 IST W Map Quest Single :  Logcat:0 logcat   WAy point at:2 :25.749744499999995,-80.4108242
2018-06-23 16:08:46.93 +0530 IST W Map Quest Single :  Logcat:0 logcat   Route start coordinate: 25.7342147,-80.4073509
2018-06-23 16:08:46.943 +0530 IST W Map Quest Single :  Logcat:0 logcat   initializing Navigation...
2018-06-23 16:08:47.075 +0530 IST W Map Quest Single :  Logcat:0 logcat   Navigation Listeners Set
2018-06-23 16:08:47.075 +0530 IST W Map Quest Single :  Logcat:0 logcat   Navigation Listeners Removed
2018-06-23 16:08:47.075 +0530 IST W Map Quest Single :  Logcat:0 logcat    Route Destinations count :3
2018-06-23 16:08:47.075 +0530 IST W Map Quest Single :  Logcat:0 logcat    Route Leg count :3
2018-06-23 16:08:47.081 +0530 IST W Location Provider :  Logcat:0 logcat   requestLocationUpdates() isConnected: true
2018-06-23 16:08:47.095 +0530 IST W Location Provider :  Logcat:0 logcat   requestLocationUpdates() status: SUCCESS
2018-06-23 16:08:47.097 +0530 IST W Location Provider :  Logcat:0 logcat   getLastKnownLocation() isConnected: true; mAreLocationUpdatesRunning: true
2018-06-23 16:08:47.109 +0530 IST W Map Quest Single :  Logcat:0 logcat   Navigation Started ...

2018-06-23 16:08:47.138 +0530 IST W ViewRootImpl  Logcat:0 logcat   sendUserActionEvent() mView == null
2018-06-23 16:08:47.139 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73416439, -80.40735534 Location update Running :=>true
2018-06-23 16:08:47.397 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73416502, -80.40735412 Location update Running :=>true
2018-06-23 16:08:47.613 +0530 IST W Map Quest Single :  Logcat:0 logcat   T2s engine init :0
2018-06-23 16:08:47.614 +0530 IST W Map Quest Single :  Logcat:0 logcat   T2s engine init success:0
2018-06-23 16:08:48.389 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.7341658, -80.4073507 Location update Running :=>true
2018-06-23 16:08:50.39 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417, -80.40734639 Location update Running :=>true
2018-06-23 16:08:51.389 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417218, -80.40734527 Location update Running :=>true
2018-06-23 16:08:52.393 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417348, -80.40734361 Location update Running :=>true
2018-06-23 16:08:53.389 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417501, -80.40734291 Location update Running :=>true
2018-06-23 16:08:55.388 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417511, -80.40734224 Location update Running :=>true
2018-06-23 16:08:56.386 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417518, -80.40734168 Location update Running :=>true
2018-06-23 16:08:57.389 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417492, -80.40734131 Location update Running :=>true
2018-06-23 16:08:59.383 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417469, -80.40734104 Location update Running :=>true
2018-06-23 16:09:00.392 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.7341745, -80.40734085 Location update Running :=>true
2018-06-23 16:09:01.393 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417431, -80.40734091 Location update Running :=>true
2018-06-23 16:09:03.398 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417371, -80.40734062 Location update Running :=>true
2018-06-23 16:09:04.392 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417375, -80.40734094 Location update Running :=>true
2018-06-23 16:09:05.405 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417356, -80.40734135 Location update Running :=>true
2018-06-23 16:09:07.391 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.7341748, -80.4073481 Location update Running :=>true
2018-06-23 16:09:09.39 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417629, -80.40735252 Location update Running :=>true
2018-06-23 16:09:10.398 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417609, -80.40735411 Location update Running :=>true
2018-06-23 16:09:12.386 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417785, -80.40736223 Location update Running :=>true
2018-06-23 16:09:13.396 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.7341779, -80.4073641 Location update Running :=>true
2018-06-23 16:09:15.395 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417859, -80.40736285 Location update Running :=>true
2018-06-23 16:09:16.413 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417787, -80.40735782 Location update Running :=>true
2018-06-23 16:09:17.13 +0530 IST W Map Quest Single :  Logcat:0 logcat   Eta Request MAde
2018-06-23 16:09:17.42 +0530 IST W Map Quest Single :  Logcat:0 logcat   Eta Request Failed403

.
.
.
.

2018-06-23 16:18:18.07 +0530 IST W Map Quest Single :  Logcat:0 logcat   Eta Request MAde
2018-06-23 16:18:18.37 +0530 IST W Map Quest Single :  Logcat:0 logcat   Eta Request Failed403
2018-06-23 16:18:19.383 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73417836, -80.4073386 Location update Running :=>true
2018-06-23 16:18:21.393 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73418024, -80.40734101 Location update Running :=>true
2018-06-23 16:18:23.377 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73418449, -80.40734193 Location update Running :=>true
2018-06-23 16:18:24.381 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73418501, -80.40734129 Location update Running :=>true
2018-06-23 16:18:26.497 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73418705, -80.4073409 Location update Running :=>true
2018-06-23 16:18:27.426 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.7341883, -80.40734034 Location update Running :=>true
2018-06-23 16:18:28.416 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419013, -80.40734078 Location update Running :=>true
2018-06-23 16:18:29.389 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419103, -80.40734111 Location update Running :=>true
2018-06-23 16:18:31.389 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419166, -80.40734124 Location update Running :=>true
2018-06-23 16:18:32.377 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419155, -80.40734143 Location update Running :=>true
2018-06-23 16:18:33.377 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419259, -80.40734094 Location update Running :=>true
2018-06-23 16:18:34.382 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419345, -80.40734062 Location update Running :=>true
2018-06-23 16:18:36.368 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419419, -80.40734033 Location update Running :=>true
2018-06-23 16:18:37.372 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419441, -80.40734019 Location update Running :=>true
2018-06-23 16:18:38.426 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419466, -80.40734014 Location update Running :=>true
2018-06-23 16:18:39.393 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419478, -80.40734008 Location update Running :=>true
2018-06-23 16:18:40.385 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419471, -80.40734008 Location update Running :=>true
2018-06-23 16:18:42.38 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419466, -80.40734009 Location update Running :=>true
2018-06-23 16:18:43.391 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419467, -80.4073401 Location update Running :=>true
2018-06-23 16:18:44.391 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.7341947, -80.40734009 Location update Running :=>true
2018-06-23 16:18:45.388 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73419472, -80.40734008 Location update Running :=>true
2018-06-23 16:18:46.392 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73420224, -80.4073475 Location update Running :=>true
2018-06-23 16:18:47.405 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73420565, -80.4073559 Location update Running :=>true
2018-06-23 16:18:49.39 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73421396, -80.40737184 Location update Running :=>true
2018-06-23 16:18:51.395 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73421335, -80.40739054 Location update Running :=>true
2018-06-23 16:18:53.392 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73421552, -80.40741213 Location update Running :=>true
2018-06-23 16:18:53.423 +0530 IST W Map Quest Single :  Logcat:0 logcat   UpComing Maneuver Update ...
2018-06-23 16:18:53.424 +0530 IST W Map Quest Single :  Logcat:0 logcat   UpComing Maneuver Update is Null ...
2018-06-23 16:18:53.426 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:53.445 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:53.446 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:18:53.45 +0530 IST W Map Quest Single :  Logcat:0 logcat   UpComing Maneuver Update ...
2018-06-23 16:18:53.458 +0530 IST W Map Quest Single :  Logcat:0 logcat   UpComing Maneuver Update is Null ...
2018-06-23 16:18:53.461 +0530 IST W Map Quest Single :  Logcat:0 logcat   On Destination Reached
2018-06-23 16:18:55.405 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73422585, -80.40743786 Location update Running :=>true
2018-06-23 16:18:55.432 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:55.432 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:55.445 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:18:55.445 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:55.445 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:55.445 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:18:57.407 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73423832, -80.40745177 Location update Running :=>true
2018-06-23 16:18:57.407 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73423832, -80.40745177 Location update Running :=>true
2018-06-23 16:18:57.412 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:57.412 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:57.415 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:57.415 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:57.42 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:18:57.42 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:18:58.409 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73424712, -80.4074572 Location update Running :=>true
2018-06-23 16:18:58.409 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73424712, -80.4074572 Location update Running :=>true
2018-06-23 16:18:58.413 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:58.413 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:58.446 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:58.446 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:58.452 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:18:58.452 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:18:59.422 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73425665, -80.40746226 Location update Running :=>true
2018-06-23 16:18:59.422 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73425665, -80.40746226 Location update Running :=>true
2018-06-23 16:18:59.424 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:59.424 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:18:59.44 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:59.44 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:18:59.44 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:18:59.44 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:19:00.408 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73426527, -80.40746829 Location update Running :=>true
2018-06-23 16:19:00.408 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73426527, -80.40746829 Location update Running :=>true
2018-06-23 16:19:00.433 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:19:00.433 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:19:00.444 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:19:00.444 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:19:00.444 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:19:00.444 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:19:02.415 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73428062, -80.40748586 Location update Running :=>true
2018-06-23 16:19:02.415 +0530 IST W Location Prov

.
.
.
.
.

2018-06-23 16:43:41.379 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:43:41.394 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:43:41.402 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:43:42.383 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73416602, -80.40737638 Location update Running :=>true
2018-06-23 16:43:42.399 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:43:42.424 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0
2018-06-23 16:43:42.43 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:43:44.372 +0530 IST W Location Provider :  Logcat:0 logcat   onLocationChanged() location: 25.73416283, -80.40737806 Location update Running :=>true
2018-06-23 16:43:44.376 +0530 IST W Map Quest Single :  Logcat:0 logcat   new Location observation received
2018-06-23 16:43:44.405 +0530 IST W Map Quest Single :  Logcat:0 logcat   maneuver dis null
2018-06-23 16:43:44.405 +0530 IST W Map Quest Single :  Logcat:0 logcat   remiane dis:0.0

 

 

 


MQBrianCoakley
If the route is at its

If the route is at its destination then the maneuver will be nil. This is not unexpected since there are no remaining maneuvers.

 

The 403 error is an application key error. Do you see this regularly?


Hitch-Hyke
Yes the 403 error came

Yes the 403 error came regularly

 


MQBrianCoakley
But the application functions
But the application functions up to a point with the same key? It definitely should not be failing on the key part way through the process. It should either fail completely or work completely. One key is supposed to work with all APIs.

Hitch-Hyke
Yes the application's rest of

Yes the application's rest of funtionality works well with the same key.


Hitch-Hyke
 Map did not rotate according

 Map did not rotate according to the driver's heading direction. And Location I  received in "onLocetionObservationReceived" have "0.0" bearing angle all the time , I'm using Google fuse Location provider here,
Thanks.