Apple Newsstand Download Full Notification

I have a newsstand application that provides downloads through NKNewsstandKit.

My problem is that when I start downloading an asset and terminating the application, it loads fine in the background. It also calls the application in the background. But I did not receive the connectionDidFinishDownloading event:

Does anyone have an idea how I can get an event and process my assets.

+4
source share
1 answer

If you start downloading while the application is running and then stop the application, you will not receive any methods for delegating resource loading (there is an option to start UIApplicationLaunchOptionsNewsstandDownloadsKey , which I expected in this case, but I never saw this happen). The best solution is when the user launches the application, resumes loading each of the assets in [[NKLibrary sharedLibrary] downloadingAssets] , and you should get connectionDidFinishDownloading for everyone that is already loaded. Be sure to do this in the didFinishLaunchingWithOptions method in the main thread or the assets will be deleted.

Also see Detecting background application launch in Xcode for debugging Newsstand application and Loading in Newsstand after user closes the application. Completely

+2
source

Source: https://habr.com/ru/post/1393107/


All Articles