Comments (7)
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.
If the device gets locked, the download fails.
from mapbook-ios.
Download still fails if I lock the tablet. I'm on master branch
from mapbook-ios.
Are you getting any error when you open the app again?
from mapbook-ios.
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.
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.
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)
- Doc update for addition of Toolkit submodule HOT 2
- Hide update UI in Device mode HOT 2
- Bug: Side loaded package showed up in Portal mode HOT 1
- Upgrade app to Runtime 100.2
- Change repo topics HOT 3
- Update code base to Swift 4 HOT 1
- Update README to reflect the new home for 'Client ID' & 'License Key'
- Update for SDK v 100.3 HOT 1
- Migrate to Swift 4.2 and build for XCode 10 HOT 2
- Remove ATS allows arbitrary loads. HOT 2
- Build for 100.4.0 HOT 2
- Updating mobile map packages from Portal isn't very user friendly
- Update the default portal url string to omit the 'www' HOT 2
- Migrate app to Swift 5
- Handle expiration of mobile map packages HOT 1
- Test app compiled with U6 HOT 1
- Migrate app to Swift 5.1 HOT 1
- Update app for iOS 13 HOT 1
- Consider deleting the v.next branch HOT 2
- Resolve build failure due to Build Phases executing out of order
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbook-ios.