amazon-archives/aws-sdk-ios-v1

download progress

Closed this issue · 5 comments

Hey,with upload progress already implemented it would be great to have download progress too instead of having to do some funky calculations on the didReceiveData call ;)

We are leveraging the existing NSURLConnection delegate methods, hence why didReceiveData does not include the additional information. We'll investigate wrapping this further and adding some convenience methods for download progress as this is a common ask from customers.

Yeah, right now I've been taking the expecteddatalenght from received response and trying to calculate a % in getdata but as the data length keeps going up and down I can't figure out a good way..as I'm using an output stream I tried checking that as well as the file system file size but for some reason this too keeps giving me strange readings :/

On Sat, Jun 1, 2013 at 12:30 AM, Bob Kinney notifications@github.com
wrote:

We are leveraging the existing NSURLConnection delegate methods, hence why didReceiveData does not include the additional information. We'll investigate wrapping this further and adding some convenience methods for download progress as this is a common ask from customers.

Reply to this email directly or view it on GitHub:
aws-amplify/aws-sdk-ios#22 (comment)

If you are the same user that posted to the forums, I posted a response there you may find helpful correcting your delegate code:

https://forums.aws.amazon.com/message.jspa?messageID=456123#456123

Ok, thx ill take a look

On Sat, Jun 1, 2013 at 12:39 AM, Bob Kinney notifications@github.com
wrote:

If you are the same user that posted to the forums, I posted a response there you may find helpful correcting your delegate code:

https://forums.aws.amazon.com/message.jspa?messageID=456123#456123

Reply to this email directly or view it on GitHub:
aws-amplify/aws-sdk-ios#22 (comment)

Duh, that's so obvious I kinda just hit my head haha.. Adding the data to a total and then dividing that.. So simple I was just over thinking it . Thx!

On Sat, Jun 1, 2013 at 12:39 AM, Bob Kinney notifications@github.com
wrote:

If you are the same user that posted to the forums, I posted a response there you may find helpful correcting your delegate code:

https://forums.aws.amazon.com/message.jspa?messageID=456123#456123

Reply to this email directly or view it on GitHub:
aws-amplify/aws-sdk-ios#22 (comment)