0

私のアプリはニューススタンドのコンテンツを毎日自動ダウンロードする必要がありますが、アプリを正常に起動した場合にのみ開始されます。Newsstand アプリの使用はまったく初めてです。私はこれのために何かを逃しましたか?

バックグラウンド モードの機能で「ニューススタンドのダウンロード」にチェックを入れました。

Info.plist

<key>UIBackgroundModes</key>
<array>
    <string>newsstand-content</string>
</array>

これをdidFinishLaunchingWithOptionsdidReceiveRemoteNotificationに入れています

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];

}

これをテストする良い方法はありますか?私は現在、アプリをタップせずに更新されているかどうか(バックグラウンドで実行されているかどうか)を毎日待っています。これはばかげた方法だと思います。

4

1 に答える 1