Giter Club home page Giter Club logo

sddownloadmanager's Introduction

iOS Developer at Fairmatic. Previously contributed to the awesome iOS Chat SDK developed at Stream. Also worked as a Senior iOS SDK developer at Helpshift contributing to their support SDK which is installed on more than ~2B devices. Worked as an iOS developer at athenahealth

Twitter: Sagar Dagdu Linkedin: Sagar Dagdu GitHub SagarSDagdu
profile for Sagar D at Stack Overflow, Q&A for professional and enthusiast programmers

A little more about me...

let sagar = Developer()
sagar.pronouns = [.he, .him]
sagar.country = Countries.India //🇮🇳
sagar.codingLanguages += ["Swift", "Objective C", "Java"]
sagar.experiences = ["iOS", "Android"]
sagar.setInterestAreas(areas: ["clean-code", "design-patterns", 
                               "architectures", "programming-paradigms"])
sagar.education = Masters(specialization: "Computer Science")
sagar.hobbies = ["open-source 💻", "reading 📚", "riding 🏍", "movies 🍿"]
sagar.currentlyExploring = { _ in
  return ["SwiftUI", "Functional Programming"]
}

Sagar's github stats

I love connecting with people so if you want to say hi, just reach out to me on Twitter, I'll be more than happy to chat!

sddownloadmanager's People

Contributors

alond avatar narjes-abs avatar sagarsdagdu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sddownloadmanager's Issues

Multiple Downloads synchronously

Hi... Thanks for great work.

  • Can you please update this library with Multiple Downloads synchronously.
  • Can you add pause the downloading & start at that point.
  • Can you please provide total size & remaining downloads size.

Thanks.

Cancel all downloads does not immediately cancel

I'm testing downloading 7000 small files (a tile map) and it works fine. The cancelAllDownloads() may not work as expected though. It cancel the download right away and currentDownloads() show 0. Problem is the phone CPU continues to draw 115% for another minute or so until I get lots of error messages:

Download_Test[8714:5096552] Task <BB99B5A0-D65B-48A1-B2DC-4BADF2FF14C7>.<2949> finished with error - code: -999
Download_Test[8714:5096552] Task <0D00795E-2B48-45EA-8A01-17223FDB1D52>.<1217> finished with error - code: -1001

999 means cancelled and 1001 means timeout. Starting a new download after this works but if I would cancel and then immediately start a new download it will not work very good. I get a lot of these in the console:
Download_Test[8714:5100848] TIC Read Status [34:0x1c456e640]: 1:57

Then it kind of freezes the app but eventually it continues by cancelling like above and at the same time tries to download which result in this error:
Error: Error Domain=NSPOSIXErrorDomain Code=24 "Too many open files"

It calm down eventually but it takes 10-15min this time and only a few files are downloaded.

Would it be possible to get the cancel to really cancel directly, alternatively tell me via some callback when the cancel has really cancelled, ie. urlsession timeout so I can block the user from starting a new download? How to shorten the timeout?

I also wonder if it's wise to download 7000 files in one go or if I should divide it up 100 files at a time?

Is their any way to know the download is paused using this lib

        if downloadManager.isDownloadInProgress(forKey: _downloadKey) {
            downloadManager.pause(forUniqueKey: _downloadKey)
        }else {
            downloadManager.resume(forUniqueKey: _downloadKey)
        }

I am using this to toggle pause and resume but resume doesn't work as it always say it in progress, is their any way to check if the download url is paused

Thanks for an amazing lib

Function misspelled, dowloadFile -> downloadFile

Should be "downloadFile".

Also, maybe improve the README how to actually use the library. I took me a while to figure out that the singleton functions is called like SDDownloadManager.shared.dowloadFile and not from SDDownloadManager.downloadFile. Never used singleton before. Also in xcode after you installed the pod (and add the line "import SDDownloadManager") you need to build your project before you can access the class at all. Small details for newbies like me. Also I think the instructions for the pod is wrong, I had to write it like this:

platform :ios, '11.4'
target "Download_Test" do
  pod 'SDDownloadManager'
end

is Something wrong with pod installation

when i try to add this to my project using pods , after importing the model in my code , the only property SDDownloadManager has is version number , and i can't use any of functions

On Finish status

Hi, thanks for the great module.
Is their a way to get the status
for example SDDownloadManager.shared.onFinishSession (error, url, status) in .....

thanks in advance.

:0)

Swift Package Manager Support

First off thanks so much for this library. It's been really helpful. I'm migrating to SPM and would love to include this package. Any chance for SPM support?

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.