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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Users have reported seeing data requests occurring when the app has been backgrounded (the Activity is in an paused state). One example given was the download of a sprite (eg. [email protected]) which occured when the app has been backgrounded for a couple of hours. Ideally we stop requesting resources when onPause occurs and only resume downloads when we hit onResume.
It's likely that this happens because resources expire while the app is still running in the background. When a resource expires, we try to reload/refresh it.
Activity
kkaefer commentedon Sep 12, 2017
It's likely that this happens because resources expire while the app is still running in the background. When a resource expires, we try to reload/refresh it.
kkaefer commentedon Sep 12, 2017
@tobrun
DefaultFileSourcehas the ability topause:mapbox-gl-native/include/mbgl/storage/default_file_source.hpp
Lines 126 to 140 in 8e01f52
Are we calling this when the app goes to the background?
tobrun commentedon Sep 12, 2017
Thank you for 👀 @kkaefer, we aren't atm, will fix this up.
tobrun commentedon Dec 12, 2017
This landed in 5.2.0