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.

MGLOfflinePack suspend has no effect in mapbox-ios-sdk-3.2.0-beta.2 #4418

Closed

Description

@postmechanical
No description provided.

Activity

  1. jfirebaugh commented on Mar 21, 2016

    @jfirebaugh
    Contributor

    Can you please provide a more detailed description for the issue? What did you do, what did you expect to happen, what happened instead?

  2. postmechanical commented on Mar 21, 2016

    @postmechanical
    Author

    @jfirebaugh [someOfflinePack suspend] was working in 3.2.0-beta.1 but not in 3.2.0-beta.2. I've verified this by setting a break point in the delegate method - (void)offlinePack:(MGLOfflinePack *)pack progressDidChange:(MGLOfflinePackProgress)progress which continues to be called and the pack instance state remains MGLOfflinePackStateActive.

  3. jfirebaugh commented on Mar 22, 2016

    @jfirebaugh
    Contributor

    What you are observing may be an expected consequence of the asynchronous nature of offline downloads. The download is conducted on a background thread, and the cross-thread messaging can result in a delay between the call to [someOfflinePack suspend], the suspend message getting delivered to the background thread, and the acknowledgement and final status notification getting sent back to the main thread. The pack's state tracks the acknowledged state of the download, i.e. the state last reported from the background download thread.

    There's more discussion of this in #4229.

  4. postmechanical commented on Mar 22, 2016

    @postmechanical
    Author

    @jfirebaugh The suspend has no effect in the sense that the download never, even eventually, stops. The offline pack continues until the download is completed.

  5. added
    iOS
    on Mar 22, 2016
  6. 1ec5 commented on Mar 27, 2016

    @1ec5
    Contributor

    Has this pack previously been downloaded to completion? If you resume a complete pack, the download will start from 0 but pausing won’t stop until the pack has accounted for all the resources that have already been downloaded – that is, all the pack’s resources.

  7. postmechanical commented on Mar 28, 2016

    @postmechanical
    Author

    @1ec5 I don't recall unfortunately. I've paused working with the Mapbox SDK for now. I will try again once a stable 3.3.0 release is available.

  8. friedbunny commented on Mar 10, 2017

    @friedbunny
    Contributor

    Closing as stale, but please feel free to post more information as it becomes available.

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

    iOSoffline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions