Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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

Open

Description

@jmkiley

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?

cc @friedbunny

Activity

  1. added
    iOS
    on Dec 15, 2016
  2. jfirebaugh commented on Dec 15, 2016

    @jfirebaugh
    Contributor

    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.

  3. barnaclebarnes commented on Feb 24, 2017

    @barnaclebarnes

    +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.

  4. boundsj commented on Feb 28, 2017

    @boundsj
    Contributor

    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.

  5. jfirebaugh commented on Feb 28, 2017

    @jfirebaugh
    Contributor

    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.

  6. robmaceachern commented on Mar 12, 2018

    @robmaceachern

    @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.

  7. barnaclebarnes commented on Mar 12, 2018

    @barnaclebarnes

    @robmaceachern We haven't found one yet. This is still stopping us moving 100% too Mapbox maps unfortunately.

  8. changed the title [-]Updating offline maps on cellular[/-] [+]Provide a way to disable network activity for maps[/+] on Mar 13, 2018
  9. jfirebaugh commented on Mar 13, 2018

    @jfirebaugh
    Contributor

    The use case described by @barnaclebarnes is what this feature request is tracking. I've updated the title to make that clearer.

  10. stale commented on Oct 27, 2018

    @stale

    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.

  11. added
    archived
    on Oct 27, 2018
  12. barnaclebarnes commented on Oct 27, 2018

    @barnaclebarnes

    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

  13. removed
    archived
    on Oct 27, 2018
  14. bwandersOA commented on Mar 28, 2019

    @bwandersOA

    +1 for this issue. Impacts user's battery life and data usage without a method to disable network requests for updated/additional tiles

  15. pimnijman commented on Sep 17, 2019

    @pimnijman

    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.

  16. added this to the release-sangria milestone on Sep 23, 2019
  17. friedbunny commented on Sep 23, 2019

    @friedbunny
    Contributor

    There’s an open pull request that would add this over in #15650.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuregl-iosiOSoffline

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions