Comments (10)
I'd like to be able to let the user exit the app during the downloads
Did you mean force quit the app? Or did you mean when app is in background?
from mzdownloadmanager.
App in background, not force quit
from mzdownloadmanager.
If it is working in simulator then it should also work in real device. I am not sure whats going on.
Make sure that background modes are enabled in Settings
in your device.
from mzdownloadmanager.
Everything is set on device. Basically my code add a download task every time a new one is finished, so I don't load all my 500 tasks once, but one per time. I don't know if this information can help you.
from mzdownloadmanager.
how to see the files in custom directory in my iphone.
from mzdownloadmanager.
hi is there a way to resume downloads after force quitting the app and opening it again
from mzdownloadmanager.
When user force quits app and relaunch the app this delegate method got called func URLSession(_ session: Foundation.URLSession, task: URLSessionTask, didCompleteWithError error: NSError?)
and in error's info there is a key i.e NSURLErrorBackgroundTaskCancelledReasonKey
and in this case its value will be NSURLErrorCancelledReasonUserForceQuitApplication
. There are additional keys in that user info try to find out the resume data from the error and restart the task with the resume data.
from mzdownloadmanager.
ok thank you very much for wonderful library
from mzdownloadmanager.
+1 I have issue with background download (unknown error).
I am running app from xcode in my device, background is working. I will open second app and go back again to main app, download work.
I launch app from icon (after installed) and make the same steps as above, error trigger.
Any idea?
from mzdownloadmanager.
Hi, I'm trying to implement a way to resume a download task after the app has been quit by the user
because I need to download a large file (300MB more or less).
can you share a code snippet that shows how to do that?
from mzdownloadmanager.
Related Issues (20)
- Php Tag
- Multiple download files task called asynchronously
- How can I check the progress of downloading one file?
- Retry download does not work. Swift 3
- Why I force quit APP, the resume download from zero HOT 4
- When download in iOS 10.3.1, the cpu and memory were very high
- Having issues when downloading over fast network on slow devices HOT 2
- Stuck on pending HOT 1
- Cannot use in objc project.
- Download 3 file at same time HOT 1
- Download File Size HOT 1
- SSL Error HOT 2
- while i update xcode 10.1 with swift 4.2,have find errors such as Value of type 'MZDownloadModel' has no member 'id',Value of type 'MZDownloadManager' has no member 'clearAllDownloads' and Value of type 'MZDownloadManager' has no member 'isAnyDownloadTasks'
- Issue on MZDownloadManager.swift isValidResumeData line 156 HOT 11
- Downloding array is clear when app start again after complete all download
- Delegates are not calling after come back from background HOT 3
- Divide By Zero Exception
- Some url working fine on browser but this manager not find HOT 1
- File already exist HOT 2
- swift too many HTTP redirects HOT 1
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 mzdownloadmanager.