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.
Provide a way to disable network activity for maps #7443
Currently, offline maps are updated whenever device detects a network connection. The user would need to disable this using their platform's connectivity monitoring API if they would like to prevent users from downloading offline maps over a cellular connection.
Would it be possible to let the user to choose whether they want to allow offline maps to update while the end user is connected to cellular?
Note that "updated" here means the following: when connectivity is available, resources (principally tiles) which are needed to render visible regions of the map are checked for freshness according to the schedule defined by caching headers on the most recently stored response. There's no "en masse" update of whole offline regions -- only the resources that are actually used are updated.
Reacted by John D. Pope, Robert MacEachern and Jordan Kiley
+1 for this. I want to be able to 'lock' the offline map so that it doesn't create any network traffic when viewing the offline map. Even if the user scrolls outside the viewable area it shouldn't try and download more data. That defeats the purpose of an offline map. This is especially critical with tourism apps where users may be on a very limited/expensive data plan while roaming.
Noting that #8125 proposes a way to turn off file / network activity in the SDK. That PR intends to use the (private to the Mapbox SDK) feature to automatically disable network and file system activity when the host app is running in the background. However, something like this could be used by the application developer to disable activity as a response to connectivity changes (or any other reason) if it were exposed publicly.
As written, the pause/resume mechanism is not a good fit for this use case though, because it disables loading any resources, including those that can be satisfied by the offline database.
We also need a way to allow users to download maps offline and then disable all (or virtually all) mapping network traffic to avoid unnecessary data charges for users.
It'd be great if a delegate method was exposed to enable control over when network requests were attempted.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Any updates on this? Users are reporting large downloads while using "offline" maps, so I'm looking for a way to prevent downloading tiles in certain cases.
Activity
jfirebaugh commentedon Dec 15, 2016
Note that "updated" here means the following: when connectivity is available, resources (principally tiles) which are needed to render visible regions of the map are checked for freshness according to the schedule defined by caching headers on the most recently stored response. There's no "en masse" update of whole offline regions -- only the resources that are actually used are updated.
barnaclebarnes commentedon Feb 24, 2017
+1 for this. I want to be able to 'lock' the offline map so that it doesn't create any network traffic when viewing the offline map. Even if the user scrolls outside the viewable area it shouldn't try and download more data. That defeats the purpose of an offline map. This is especially critical with tourism apps where users may be on a very limited/expensive data plan while roaming.
boundsj commentedon Feb 28, 2017
Noting that #8125 proposes a way to turn off file / network activity in the SDK. That PR intends to use the (private to the Mapbox SDK) feature to automatically disable network and file system activity when the host app is running in the background. However, something like this could be used by the application developer to disable activity as a response to connectivity changes (or any other reason) if it were exposed publicly.
jfirebaugh commentedon Feb 28, 2017
As written, the
pause/resumemechanism is not a good fit for this use case though, because it disables loading any resources, including those that can be satisfied by the offline database.robmaceachern commentedon Mar 12, 2018
@jfirebaugh is there any solution for the use case mentioned by @barnaclebarnes?
We also need a way to allow users to download maps offline and then disable all (or virtually all) mapping network traffic to avoid unnecessary data charges for users.
It'd be great if a delegate method was exposed to enable control over when network requests were attempted.
barnaclebarnes commentedon Mar 12, 2018
@robmaceachern We haven't found one yet. This is still stopping us moving 100% too Mapbox maps unfortunately.
[-]Updating offline maps on cellular[/-][+]Provide a way to disable network activity for maps[/+]jfirebaugh commentedon Mar 13, 2018
The use case described by @barnaclebarnes is what this feature request is tracking. I've updated the title to make that clearer.
stale commentedon Oct 27, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
barnaclebarnes commentedon Oct 27, 2018
This issue is still live. AFAIK there is still no way to have offline maps that don't try and access the network. /c @jfirebaugh
bwandersOA commentedon Mar 28, 2019
+1 for this issue. Impacts user's battery life and data usage without a method to disable network requests for updated/additional tiles
pimnijman commentedon Sep 17, 2019
Any updates on this? Users are reporting large downloads while using "offline" maps, so I'm looking for a way to prevent downloading tiles in certain cases.
friedbunny commentedon Sep 23, 2019
There’s an open pull request that would add this over in #15650.