nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 699 forks source link

Force resetting the navigation cache for offline usage #1733

Open lendannau opened 12 months ago

lendannau commented 12 months ago

Hi team,

We are currently developing an app where we managed to effectively use turn-by-turn navigation offline. A specific pack of tiles is defined + downloaded and users can access navigation in those regions while offline.

The problem we are facing is the following: For routings of more than 50 kms, the offline navigation only works the one time, then all following attempts fail. It seems to be an issue with the cache not emptying as creating a new short routing or restarting the App will reset this and make it work again.

Is there any way to force empty the Mapbox cache without also removing the downloaded regions? This would fix my issue and make offline navigation possible for us.

Tank you!

zenginhasanberk commented 1 month ago

Hi @lendannau . I hope you're still using this account. How did you implement turn-by-turn navigation using this library? I am working on a similar project, and I am not sure if this library exposes any API's for turn by turn navigation. Any help would be greatly appreciated!