maplibre-react-native
maplibre-react-native copied to clipboard
[Android] Cannot pause offline pack
Describe and reproduce the Bug
In example Example/Create Offline Region it is not possible pause the dowloading of a region.
Observations:
- setDownloadState is called but the previous state is equal to the new state. And function is exited without any change. https://github.com/maplibre/maplibre-native/blob/e97687bc5598174d5ece0e0b3b00bd52763725b2/platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/offline/OfflineRegion.kt#L277
- Likely an issue upstream maplibre-native
- After creating an offlineRegion it is expected to actually start downloading by calling setDownloadState which also set the state. It seems that downloading starts without calling setDownloadState https://github.com/maplibre/maplibre-native/blob/e97687bc5598174d5ece0e0b3b00bd52763725b2/platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/offline/OfflineManager.kt#L494
@maplibre/maplibre-react-native Version
workspace:*
Which platforms does this occur on?
Android Device
Which frameworks does this occur on?
Expo
Which architectures does this occur on?
Old Architecture
Environment
expo-env-info 1.3.3 environment info:
System:
OS: macOS 15.5
Shell: 5.9 - /bin/zsh
Binaries:
Node: 23.11.0 - /opt/homebrew/bin/node
Yarn: 4.5.3 - /opt/homebrew/bin/yarn
npm: 10.9.1 - ~/Documents/GitHub/maplibre-react-native/node_modules/.bin/npm
Watchman: 2025.03.10.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.4, iOS 18.4, macOS 15.4, tvOS 18.4, visionOS 2.4, watchOS 11.4
IDEs:
Android Studio: 2024.3 AI-243.25659.59.2432.13423653
Xcode: 16.3/16E140 - /usr/bin/xcodebuild
npmPackages:
react: 18.3.1 => 18.3.1
react-native: 0.76.9 => 0.76.9
npmGlobalPackages:
eas-cli: 16.6.1
expo-cli: 6.3.10
Expo Workflow: bare