-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OfflineRegionObserver stops delivering status updates without an error #1910
Comments
We've also tested with the LatLngBounds bounds = LatLngBounds.from(39.118620952596984, -77.16631710029368, 39.1094262639771, -77.17816757484755);
OfflineTilePyramidRegionDefinition definition = new OfflineTilePyramidRegionDefinition("mapbox://styles/mapbox/navigation-guidance-day-v4", bounds, 11, 17, 3); but sadly we're experiencing the same, it stops after downloading the
cc @zugaldia |
Forgot to mention that we've also tried to set a higher tiles limit via Lines 334 to 335 in 4ee24c5
|
Validated that issue stems from setting connectivity state to false: |
Following up from mapbox/mapbox-gl-native#14485 - integrating offline maps downstream in
mapbox-navigation-android
👀 #1895 we've noticed a weird scenario when callingcreateOfflineRegion
withinMapOfflineManager
mapbox-navigation-android/libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/MapOfflineManager.java
Line 51 in 4ee24c5
47 resources
👀and stops so the download isn't fully completed and
OfflineRegionDownloadCallback#onComplete
callback is never called. It seems that theOfflineRegionObserver
gets garbage collected somehow and stops giving status updates back.This can be reproduced using https://github.com/mapbox/mapbox-gl-native/tree/pg-downstream-module after updating https://github.com/mapbox/mapbox-gl-native/blob/3192dda04a49f642f0622d171bc2ddf42bdddfca/platform/android/MapboxGLDownstreamTestApp/src/main/res/values/strings.xml#L6 side-loading an offline region nearby where you're going to drive and point to the right directory in https://github.com/mapbox/mapbox-gl-native/blob/3192dda04a49f642f0622d171bc2ddf42bdddfca/platform/android/MapboxGLDownstreamTestApp/src/main/java/com/mapbox/mapboxsdk/downstream/testapp/NavigationLauncherActivity.java#L362 and grant permissions "manually" from the app's settings before running the example.
We've also noticed that trying to download a geometry within
OfflineRegionDownloadActivity
mapbox-navigation-android/app/src/main/java/com/mapbox/services/android/navigation/testapp/activity/OfflineRegionDownloadActivity.kt
Line 215 in 4ee24c5
mapbox-navigation-android/app/src/main/java/com/mapbox/services/android/navigation/testapp/activity/OfflineRegionDownloadActivity.kt
Lines 225 to 226 in 4ee24c5
mapbox-navigation-android/app/src/main/java/com/mapbox/services/android/navigation/testapp/activity/OfflineRegionDownloadActivity.kt
Line 233 in 4ee24c5
cc @danesfeder @zugaldia @tobrun
The text was updated successfully, but these errors were encountered: