My app should have auto-download the newsstand content every day but it will only started only when I launch the app normally. I am completely new on using Newsstand app. Have I missed out anything for this?
I have ticked the "Newsstand Download" in Background Modes's capabilities.
Info.plist
<key>UIBackgroundModes</key>
<array>
<string>newsstand-content</string>
</array>
I am putting this in didFinishLaunchingWithOptions and didReceiveRemoteNotification
NSString *issueName = [pdf lastPathComponent];
NKLibrary *library = [NKLibrary sharedLibrary];
if (![library issueWithName:issueName]) {
NKIssue *issue = [library addIssueWithName:issueName date:pdf.newsDate];
NKAssetDownload *asset = [issue addAssetWithRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:pdf.pdf]]];
[asset downloadWithDelegate:self];
}
Is there a good way to test this? I am currently wait every day to see whether if the app is being updated without tapping on it (run in background) I think this is a silly way to do so.