After some guides and references I've read, I still have some questions about how newsstand works.
First of all (I just want to be sure), is the atom feed only for the app store use or is it also used for the app? Does the app has to read this when in foreground to fill out the nkissue objects? or do I have to make my own customized feed for this (an xml, a plist, or whatever). I don't see any key inside entry that stores the URL for the issue. Should I do the same or something similar as this tutorial http://www.viggiosoft.com/blog/blog/2011/10/17/ios-newsstand-tutorial/ ?
How does the notification "UIRemoteNotificationTypeNewsstandContentAvailability" works if you only have to send "content-available=1" on the payload? does it download the newest issue in the atom feed? and how should I proceed with the download in background (a code snippet would be nice).
Is atom feed optional? If I have my own customized feed for the issue downloads, is the atom feed optional since its probably only used for the app store?
EDIT: Seems like atom is optional and is only for itunes, I should use another service for the app I suppose. What I still dont understand is where should I implement the background loading... in the
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
inside an "if" that looks like this if ([launchOptions objectForKey:UIApplicationLaunchOptionsNewsstandDownloadsKey] || [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]) {}
or
-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
or both options? Am I right?