Giter Club home page Giter Club logo

Comments (7)

singhgag avatar singhgag commented on August 16, 2024

Without any changes I have seen the download happening in the background. I started downloading a 90 mb file, I switched to the home screen and after a few minutes when I opened the app again, the download had finished.

from mapbook-ios.

codergrl avatar codergrl commented on August 16, 2024

If the device gets locked, the download fails.

from mapbook-ios.

codergrl avatar codergrl commented on August 16, 2024

Download still fails if I lock the tablet. I'm on master branch

from mapbook-ios.

singhgag avatar singhgag commented on August 16, 2024

Are you getting any error when you open the app again?

from mapbook-ios.

codergrl avatar codergrl commented on August 16, 2024

Nope. Steps to reproduce:

  • open app and log into portal
  • tap to download first mmpk on the list California
  • push iPad power button to lock device
  • push home button
  • slide to unlock device
  • see message "network connection lost"
  • see California mmpk not downloading anymore

from mapbook-ios.

singhgag avatar singhgag commented on August 16, 2024

The download process or implementation has changed completely. Earlier I was using fetchData on portalItem to get the package. That use to keep the downloaded data in memory, possibly leading to crashes for larger files. Now I am using AGSRequestOperation for download. It writes directly to file. It supports downloading when app is in background. Also, resumes the job from where it stopped last time.

A lot of changes went into this PR. Please take a look and try to test each and every scenario.

from mapbook-ios.

codergrl avatar codergrl commented on August 16, 2024

Tested downloading a 2.3 GB package. Started download, locked device and went to lunch. When I returned, the mmpk was downloaded successfully.

from mapbook-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.