Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7033969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:07:44+00:00 2026-05-28T01:07:44+00:00

I am currently creating an iOS Newsstand app. I have issues added and working

  • 0

I am currently creating an iOS Newsstand app. I have issues added and working the way I want. However, when I try to go and download their remote file, it doesn’t seem to be working. None of the delegate methods are getting called and no file is being written.

This is what I have for certain:

  • A UITableViewController that is a NSURLConnectionDownloadDelegate.
  • UIBackgroundModes (in the info.plist file) has ‘newsstand-content’ added
  • #import is in the header of my UITableViewController
  • NSURLConnectionDownloadDelegate’s methods are implemented

The Following code happens when the user agrees to download the issue (Note: Issue is not nil):

  // Download the Issue!
    NSLog(@"Starting Download of issue %@",issue.name);

    // Generate the url of the issue         
    NSURL * downloadURL = [dataManager pdfURLForIssue:issue];

    // Create the request
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:downloadURL
                                                           cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
                                                       timeoutInterval:30.0];

    // Create the NKAssetDownload object
    NKAssetDownload *assetDownload = [issue addAssetWithRequest:request];

    // Set user info so I know which issue's UIProgressView to update 
    [assetDownload setUserInfo:[NSDictionary dictionaryWithObjectsAndKeys:issue.name,@"Name",
                                nil]];

    // start download
    [assetDownload downloadWithDelegate:self];

I have no idea what is going on. From all I have read, I seem to have implemented everything properly; however, nothing is happening. I set breakpoints, NSLogs and such; but nothing. I even let it run for a while then checked the director the [issue contentURL] said the file would be moved too (in my connectionDidFinishDownloading:destinationURL: method).

Can anybody help? Or maybe some ideas for me? I have been stuck for days. If you need to see more code, just let me know. Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:07:45+00:00Added an answer on May 28, 2026 at 1:07 am

    I finally solved it. I started a completely new project and did all the download testing on that one. Turns out (I could be wrong but it is what I have found) that even though a normal NSURLConnection or download request works in the iPhone/iPad Simulator it seems that NKAssetDownload will not work unless it is running on an actual device.

    To summarize, I wasn’t doing anything wrong code-wise; however, I needed to run the application on an actual device for the NKAssetDownload objects would start downloading. Granted, it could have just been my experience but it has solved my problem.

    I hope this helps others who are running into similar issues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been tasked with creating an IM app for IOS. I currently have an
I am currently creating an iOS app, which connects to a database and asynchronously
I'm creating an app that tracks your elevation. Currently IOS is one of the
im currently creating a graph for an app, using coreplot and have a problem
I am currently working on creating an application similar to the Contacts app on
I am currently creating an iPhone app using Xcode 4.0.2, I want the app
I’m currently creating an iOS app that uploads files to a server. As multiple
IPhone app, ios 4+. Creating an app with 50+ pages of info and I
I'm in the process of creating a universal iOS app that, amongst other functions,
I'm currently using phonegap to create and ios app. While getting familiar to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.