无法实际托管应用内购买托管的内容 [英] can't get In-App-Purchase hosted content to be actually hosted

查看:18
本文介绍了无法实际托管应用内购买托管的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有应用内购买功能的 iPad 应用,用于通过 Urban Airship 托管其内容(他们家的痘痘).现在我正在尝试将其转换为使用 Apple 的托管内容.

I have an iPad app with In-App Purchase that used to host its content with Urban Airship (a pox upon their house). Now I'm trying to convert this to use Apple's hosted content.

我为我的一个内容项目创建了一个 .pkg 文件,并使用 Application Loader(现在多次)上传内容.包通过了验证,我点击了交付",我看着进度条,因为它是将包上传到 iTunes Store".在此项目的托管内容"选项卡中,Host Content with Apple"被明确选中,Hosted Content Package:"很好地显示了标准包图标.

I've created a .pkg file for one of my content items, and used Application Loader (multiple times now) to upload the content. The package passed validation, I clicked "Deliver," and I watched the progress bar as it was "Uploading package to the iTunes Store." In the "Hosted Content" tab for this item, "Host Content with Apple" is clearly checked, and the "Hosted Content Package:" well shows the standard package icon.

然而,当我在 iTunes Connect 上查看同一个应用程序并转到应用程序内购买并查看相同的内容项时,它显示:使用 Apple 托管内容:此功能已关闭."(这里没有提供关于如何打开它的提示.)

Yet, when I look at the same app on iTunes Connect, and go to In-App Purchases and view the same content item, it says: "Hosting Content with Apple: This feature is turned off." (And no hints are provided here as to how one might turn it on.)

在我的代码中,当我从 StoreKit 取回 SKProduct 时,我发现 downloadContentVersion 和 downloadContentLengths 都为零.无论如何,当我使用测试帐户购买它时,我会得到一个 SKPaymentTransaction,其 .downloads 也为零.如果我退出并重新启动 Application Loader,Host content with Apple"复选框现在未选中.这可能与 Apple 没有意识到他们现在托管这些内容有关.

In my code, when I get back the SKProduct from StoreKit, I find that downloadContentVersion and downloadContentLengths are both nil. And when I purchase it anyway using a test account, I get a SKPaymentTransaction whose .downloads is also nil. And if I quit and relaunch Application Loader, the "Host content with Apple" checkbox is now unchecked. This is all probably related to the fact that Apple doesn't realize they are now hosting this content.

也许生活更艰难,因为这不是新应用或新内容;这两个都是很久以前就批准的,我正在尝试将它们更新为新模型.但我当然不想为此创建一个新的应用程序.使 Apple 服务器实际托管此内容的关键步骤是什么?

Perhaps life is more difficult because this is not a new app or new content item; both of these were approved long ago, and I'm trying to update them to the new model. But I certainly don't want to create a new app just for this. What's the key step I'm missing that makes the Apple servers actually host this content?

推荐答案

我不得不审查"我的iOS 付费应用程序协议".这意味着转到 iTunes 连接 - 然后合同、税务和银行业务"单击请求"按钮并接受所有更改...

I had to "review" my "iOS Paid Applications Agreement". This means going to iTunes connect - then "Contracts, Tax, and Banking" click the "Request" button and accept all the changes...

在此之后,所有问题都消失了.从这个 stackoverflow 站点得到了答案:

After this every problem was gone. Got the answer from this stackoverflow site:

更新的 iOS 应用程序协议

我的问题与您的问题不同,但我读过类似的帖子,其中包含为我解决的相同解决方案.试试看.希望它可以帮助您或其他任何人:)

My problem wasn't similar to yours but I have read similar so posts with the same solution that did it for me. Try it out. Hope it helps you or anyone else :)

这篇关于无法实际托管应用内购买托管的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆