Closed rodrigojmlourenco closed 8 years ago
It is possible that the problem was at the application's level. Once the tracking was stopped the track was saved locally in the RouteCache@store-client
, however, the track was not deleted in the tracker
.
The new code version is now:
private void storeTrackAsRoute(Track track){
Route route = new Route();
String authToken = ((AuthenticationTokenHolder)getActivity()).getAuthenticationToken();
// The track is converted into a route here
try {
mRouteCache.saveRoute(authToken, route);
mTracker.deleteTracedTrack(track.getTrackId()); //!NEW!
} catch (UnableToCreateRouteCopyException e) {
throw new RuntimeException(e.getMessage());
}
}
In a brief analysis of the uploaded sessions metadata, i can observe that the replica is almost consistently uploaded 4 seconds later.