IOS - 应用内购买恢复完成的交易

标签 ios in-app-purchase restore

我已经多次阅读文档,但仍然不确定如何去做。来自 In App Purchase Programming guide - Restore Purchased Product:

In most cases, all your app needs to do is refresh its receipt and deliver the products in its receipt. The refreshed receipt contains a record of the user’s purchases in this app, on this device or any other device. However, some apps need to take an alternate approach for one of the following reasons:

If you use Apple-hosted content, restoring completed transactions gives your app the transaction objects it uses to download the content.

这是否意味着如果我使用 Apple 托管的内容,我不需要刷新其收据并直接调用restore completed transaction 来检索我以前的下载产品?

最佳答案

你仍然需要这样做。

你引用的文字意思是收据包含用户购买了哪些应用内商品的信息,但收据不包含内容

因此,如果您使用 Apple 托管的内容,则需要一种机制来下载所述内容。刷新收据时不会提供该内容。但是,当您使用各种恢复功能时,它会被下载。

关于IOS - 应用内购买恢复完成的交易,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23874373/

相关文章:

iphone - UITextField 中的图像仅显示在第一个文本框中,而不显示在第二个文本框中

android - 如何在调用另一个 Activity 后恢复状态?

android - 如何获取应用内购买的单独价格和货币信息?

mysql - 从数据文件中恢复mysql数据库

git - 从 .git 文件夹恢复整个项目

ios - 将委托(delegate)加载到 UITableView 时获取 EXC_BAD_INSTRUCTION

ios - 带有CoreData的RestKit避免了MOC的困惑

根据用户选择更改整个应用程序颜色主题(背景、uibutton、图标颜色...)的 iOS 应用程序

ios - 苹果由于将用户重定向到应用之外而拒绝了iOS APP

ios - Inapp Purchase:我们可以在iTunes中添加一堆产品吗?