Closed liridonsadiku closed 4 years ago
@liridonsadiku thank you for reporting! Most probably the issue happens in okhttp library which has different behaviour on different devices. Do you see that error only in logs? Does routing works for you?
Thank you for your fast replaying, No it doesn't work! The issue is when we try to create a route from Start: [40.7604684, -73.9859151] to Destination: [40.70597400, -74.01261460] the callback onCalculateRouteFinished is fired and after that RoutingError returned NETWORK_COMMUNICATION error. Which means that here maps sdk cannot generate a route for these points with this type of error.
This is happening only in some devices(samsung galaxy s8+ and tablet tab a 10 inch)
Internet connection of device is stable so don't know the reason why this error is occurring.
for your information in my app I use retrofit: implementation 'com.squareup.retrofit2:retrofit:2.1.0'
Thank you for the information. What is Android OS version on both devices?
Samsung Galaxy s8+ has OS -> Android 9 Tablet Tab A has OS -> 7.1.1
Version of SDK is: 3.13.3.105
@liridonsadiku We still can't reproduce the issue. Maybe some kind of error appears in the log? Could you share logcat from your device? Could you share minimal sample that reproduces this issue?
@liridonsadiku, can you try to reproduce using our github samples?
Hi there, I have noticed that now it is working in all devices including samsung galaxy s8+, I did not made any changes into my code. Maybe here maps team have made some changes on their own. Thanks.
Hi there, I have a strange issue with some devices(samsung galaxy s8+, tablet tab a 10 inch) with the error network_communication while we try to create a route. I have tried with wifi and mobile data, but the same error is happenging. I have added: coreRouter.setConnectivity(CoreRouter.Connectivity.ONLINE); and I have updated the sdk to the latest version, but without results.
Here is my method when i call to create a route:
// Pedestrian = 1, // PublicTransport = 2, // Track attribute((deprecated)) = 3, // Truck = 5, // UrbanMobility = 6, // Bike = 7 // Scooter = 8
// // if (m_fragment.preferences.getLastTruck().getVehicleType().getTransport_mode() !=null) { // routeOptions.setTransportMode(RouteOptions.TransportMode.getMode(m_fragment.preferences.getLastTruck().getVehicleType().getTransport_mode())); // }
// if (isSwitchPickups) { // startAnotherPickupApi(pickupId + ""); // } else if (isPostpone) { // resumePickupApi(pickupId + ""); // } else { // startPickupApi(pickupId, destinationGeoCord.getLatitude() + "," + destinationGeoCord.getLongitude()); // }
This issue is happening only on some devices, in others is working well.