更新报摊封面艺术而不更新内容

时间:2014-09-30 06:57:44

标签: ios iphone newsstand-kit

我添加了一个新的封面艺术问题。但它没有出现在报摊架子上。我不想更新我的应用。新封面艺术出现在报摊架上需要多长时间?我应该添加新版本的应用来更新封面吗?

4 个答案:

答案 0 :(得分:0)

您无需更新应用程序。您需要发送具有特定格式的推送通知。

详细信息可在Newstand FAQ found

中找到

How is the push notification that initiates the Newsstand background download different from other push notifications? Will I have to change or modify my backend infrastructure?

答案 1 :(得分:0)

今天出现在报摊上,只是时间问题。谢谢大家!

答案 2 :(得分:0)

您可以使用一些网址来获取封面图片。当需要更改封面时,您只需更改该URL上的图像即可。例如:

    NSURL *getURL = [NSURL URLWithString:@"http://youURL/main.png"];
    ASIHTTPRequest * getRequest = [ASIHTTPRequest requestWithURL:getURL];
    [getRequest startSynchronous];
    NSError *error = [getRequest error];
    if (!error) {
        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        NSString *documentsDirectory = [paths objectAtIndex:0];
        NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"main.png"];
        NSData* responseString = [getRequest responseData];
        [responseString writeToFile:filePath atomically:YES];

        UIImage *result = [UIImage imageWithContentsOfFile:filePath];
        UIApplication *app = [UIApplication sharedApplication];
        [app setNewsstandIconImage:result];
    }

每次您只需要在http://youURL/main.png上更改图片。就这些。 我在这里使用AsiHTTPRequest来下载图像。

答案 3 :(得分:0)

从包括Apple自己的规格在内的几个来源可以清楚地看到,报摊中的原子供稿仅用于更新应用程序商店中的应用程序图标和描述,而不用于更新设备上报刊亭文件夹中的应用程序图标。

https://itunesconnect.apple.com/docs/NewsstandAtomFeedSpecification.pdf

“报亭是iOS 5的一项功能,允许您的读者访问您的报纸或杂志的最新版本。您在Web服务器上托管您的内容,并为App Store提供Atom提要,提供更新的元数据和封面艺术Newsstand Atom Feed XML(本文档中描述)用于使 App Store 能够显示您的应用,其中包含与最新问题相关的封面和元数据。 本文档指定用于管理Newsstand问题元数据的Newsstand Atom Feed XML格式。 报亭问题元数据会显示在报亭应用的App Store产品页面中。提供的元数据应准确反映您应用中可用的问题和内容。 报亭问题元数据可以通过报亭Atom Feed或直接在iTunes Connect中进行管理。该 报亭Atom Feed允许您创建新问题并更新现有问题。报亭原子饲料 每天处理。报亭Atom Feed基于Atom 1.0格式。“

相关问题