Apple Newsstand Download Complete Notification

882 Views Asked by At

I have a newsstand application which provides the downloads through the NKNewsstandKit.

My Problem is that when i start downloading a asset & terminate the application, it downloads in the background perfectly. It also invoke the application in background mode. But i did not get the event connectionDidFinishDownloading:

Does anyone even have an idea, how i can get the event & process my assets.

1

There are 1 best solutions below

1
On BEST ANSWER

If you start downloading while the app is running and then terminate the app you won't get any asset download delegate methods called (there is a launch option UIApplicationLaunchOptionsNewsstandDownloadsKey which I expected in this case but I've never seen this happen). The best solution is when the user starts the app, resume downloading each of the assets in [[NKLibrary sharedLibrary] downloadingAssets] and you should get a connectionDidFinishDownloading for each that has already downloaded. Be sure to do this in the didFinishLaunchingWithOptions method on the main thread or the assets will be deleted.

Also see Detecting background app launch in Xcode to debug a Newsstand app and Newsstand resume download after the App closed by user Fully