This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Data requests when app is backgrounded #9965
Labels
Android
Mapbox Maps SDK for Android
Comments
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. |
@tobrun 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? |
Thank you for 👀 @kkaefer, we aren't atm, will fix this up. |
This landed in 5.2.0 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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. sprite@2x.png) 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 hitonResume
.The text was updated successfully, but these errors were encountered: