You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Emulate a "bad" network connection on an emulator (I used an "Edge" network type with "Moderate" signal strength)
Restart the app.
Attempt to view the same section of the map.
Expected behavior
The cached / offline version of the tile is loaded from the disk whilst a network request is sent to see if there is an update available.
Actual behavior
Because a network connection is present, the tile will attempt to be downloaded from the network, however, if the network request to load the tile over a "bad" network exceeds the default 10 seconds timeout it fails and the request is never recovered.
In the network profiler, I can see the requests start and then hit the timeout. If I extend the timeout by providing a new okhttp client with different values, the tiles do eventually load and display.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Platform:
Android
Mapbox SDK version:
9.7.1
Steps to trigger behavior
Expected behavior
The cached / offline version of the tile is loaded from the disk whilst a network request is sent to see if there is an update available.
Actual behavior
Because a network connection is present, the tile will attempt to be downloaded from the network, however, if the network request to load the tile over a "bad" network exceeds the default 10 seconds timeout it fails and the request is never recovered.
In the network profiler, I can see the requests start and then hit the timeout. If I extend the timeout by providing a new okhttp client with different values, the tiles do eventually load and display.
The text was updated successfully, but these errors were encountered: