0

Is there any way to use local notifications to alert a user that a magazine that they are downloading via newsstand in the background has completed downloading?

Phil John
  • 1,225
  • 1
  • 15
  • 24

1 Answers1

1

Usually, you are using an NKAssetDownload to get the newstand content. Then you start the download with a NSURLConnectionDownloadDelegate:

[assetDownload downloadWithDelegate:self];

When the download completes succesfully, you get a callback on

- (void)connectionDidFinishDownloading:(NSURLConnection *)connection destinationURL:(NSURL *)destinationURL;

in which implementation you could use a UILocalNotification to alert the user.

Micky
  • 5,578
  • 7
  • 31
  • 55
  • Yeah you're right. I had a breakpoint in this method, but it wasn't firing because background downloads had got turned off in the device's store settings. – Phil John Oct 23 '12 at 16:09