This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Add pause/resume API to DefaultFileSource #5236
Labels
performance
Speed, stability, CPU usage, memory usage, or power usage
Milestone
Currently, instances of DefaultFileSource allow revalidation requests regardless of if the host process is running in the background and the map that would benefit from the requests is visible. Mobile applications that are extremely concerned about limiting network requests that is not strictly necessary may see battery performance gains if the revalidation requests were not made in the background.
In general, this behavior probably makes sense as the default on both iOS and Android. In addition, as usage of the SDK grows, the backend will benefit from not having to respond to as many requests as it does today.
We should consider adding and exposing an API to DefaultFileSource (or similar approach) so that each platform can inform it if it makes sense to carryout network requests based on background state (or other factors).
cc @jfirebaugh @1ec5 @mick
The text was updated successfully, but these errors were encountered: