Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloader working fine in Debug mode but downloads only the first url multiple times in Release Mode #8

Open
tarzon opened this issue Jul 3, 2014 · 0 comments

Comments

@tarzon
Copy link

tarzon commented Jul 3, 2014

Hi
I have used Download Manager to download video files and pictures. The manager works fine when using in debug mode. As soon as i test the application with Ad-hoc certificate with release mode on, the manager downloads the first url only. No matter how many times you provide the new url. I used the delegate methods to implement code. Here's the code :

   NSURL* url = [NSURL URLWithString:obj.streamUrl];
   [IADownloadManager downloadItemWithURL:url useCache:YES];
  //Use delegate or blocks to inform you of the progress
 [IADownloadManager attachListenerWithObject:obj
                              progressBlock:^(float progress, NSURL *url) {
                                  [self downloadManagerDidProgress:progress withUrl:[NSString stringWithFormat:@"%@",url] downloadingObj:obj];
                              }
                            completionBlock:^(BOOL success, id response) {
                                [self downloadManagerDidFinish:success response:response downloadingObj:obj];
                            } toURL:url];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant