In-App Purchase Programming Guide----(八) ---- Preparing for App Review
Preparing for App Review
After you finish testing, you’re ready to submit your app for review. This chapter highlights a few tips to help you through the review process.
当你完成测试以后,就表示已经准备好提交应用以供审核。 该章节重点介绍了一些提示来帮助你通过审核过程。
Submitting Products for Review
一、递交产品以供审核
The first time you submit your app for review, you also need to submit in-app products to be reviewed at the same time. After the first submission, you can submit updates to your app and products for review independently of each other. For more information, see In-App Purchase Configuration Guide for iTunes Connect.
当你第一次提交审核程序时,你还需要同时提交内置产品以供审核。 第一次递交通过以后,以后更新应用程序和产品时则可以分别提交。 更多信息,请看 In-App Purchase Configuration Guide for iTunes Connect.
Receipts in the Test Environment
二、在测试环境中的收据
Your app runs different environments while in development, review, and production, as show in Figure 7-1.
当应用程序在开发,审核以及产品过程中,在不同的环境中运行。如下图:
Figure 7-1 Development, review, and production environments
During development, you run a development-signed version of your app, which connects to your development servers and the test environment for the App Store. In production, your users run a production-signed version of your app which connects to your production servers and the production App Store. However, during app review, your app runs in a mixed production/test environment: it’s production signed and connects to your production servers, but it connects to the test environment for the App Store.
在开发过程中,应用程序的版本是一个开发签名的版本,它连接到你的开发服务器以及应用程序中的测试环境。 在产品过程中,你的用户运行一个产品签名版本的应用程序,它连接到你的产品服务器以及产品应用商店。 然而,在应用程序审核过程中,你的应用程序运行在一个混合的产品/测试环境中:它是产品签名并且连接到你的产品服务器,但是它连接到应用商店的测试环境中。
When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code “Sandbox receipt used in production”, validate against the test environment instead.
当你验证在服务器中的收据时,你的服务器需要能够处理一个产品签名的应用程序,它从苹果的测试环境中获取它的收据。 推荐方法是总是首先为你的产品服务器激活收据而不是为产品应用商店。 如果激活出现“Sandbox receipt used in production" 错误,则验证测试环境。
Implementation Checklist
三、实现核对清单
Before you submit your app for review, verify that you’ve implemented all of the required behavior. Make sure you’ve implemented the following core In-App Purchase behavior (listed in order of a typical development process):
在递交你的审核应用之前,验证你已经实现了所有需要的行为。 确保你已经实现了以下内核内置购买行为(以一个典型的开发过程顺序列出):
Create and configure products in iTunes Connect.
在iTunes Connect里创建并配置产品。
You can change your products throughout the process, but you need at least one product configured before you can test any code.
你可以在过程中更改产品,但是在测试任何代码前,你至少需要一个已经配置好的产品。
Get a list of product identifiers, either from the app bundle or your own server. Send that list to the App Store using an instance of
SKProductsRequest
.从应用束或服务器上获取产品识别码列表(product identifiers). 用一个SKProductsRequest实例把列表发送给应用商店。
Implement a user interface for your app’s store, using the instances of
SKProduct
returned by the App Store. Start with a simple inteface during development, such as a table view or a few buttons.Implement a final user interface for your app’s store at whatever point makes sense in your development process.
使用应用商店返回的SKProduct,为应用商店实现一个用户界面。开发过程中使用一个简单的界面,比如一个表格视图或一些按钮。在开发过程中运行顺利后可以实现一个最终的用户界面。
Request payment by adding an instance of
SKPayment
to the transaction queue using theaddPayment:
method ofSKPaymentQueue
.使用SKPaymentQueue的addPayment:方法来添加一个SKPayment的实例到交易队列,用来请求支付。
Implement a transaction queue observer, starting with the
paymentQueue:updatedTransactions:
method.使用paymentQueue:updateTransactions:方法来实现一个交易队列观察者(transaction queue observer)。
Implement the other methods in the
SKPaymentTransactionObserver
protocol at whatever point makes sense in your development process.在你的开发过程中有任何需要时, 在SKPaymentTransactionObserver协议里实现其它方法。
Deliver the purchased product by making a persistent record of the purchase for future launches, downloading any associated content, and finally calling the
finishTransaction:
method ofSKPaymentQueue
.为了以后能够启动,做一个永久交易记录,传递已被购买的产品,下载全部相关内容,并在最后调用SKPaymentQueue的finishTransaction:方法。
During development, you can implement a trivial version of this code at first—for example, simply displaying “Product Delivered” on the screen—and then implement the real version at whatever point makes sense in your development process.
在开发过程中,你可以只实现一个该代码的简易版本--比如,只是简单的在屏幕上显示“Product Delivered”字样---然后在开发过程中有任何需要时实现真实版本。
If your app sells non-consumable items, auto-renewable subscriptions, or non-renewing subscriptions, verify that you’ve implemented the following restoration logic:
如果你的应用程序出售非耗材产品,自动更新订阅,或者非自动更新订阅,验证你已经实现了以下恢复逻辑:
Provide UI to begin the restoration process.
提供UI来开启恢复过程。
Retrieve information about past purchases by either refreshing the app receipt using the
SKReceiptRefreshRequest
class or restoring completed transactions using therestoreCompletedTransactions
method of theSKPaymentQueue
class.通过使用SKReceiptRefreshRequest类来刷新应用收据或者使用SKPaymentQueue类的restoreCompletedTransactions方法来恢复完整交易,来获取过去购买的信息。
Let the user re-download content.
允许用户重新下载内容。
If you use Apple-hosted content, restore completed transactions and use the transaction’s
downloads
property to get an instance ofSKDownload
.如果你使用了苹果托管内容,恢复完整交易并使用交易的downloads特性得到一个SKDownload类的实例。
If you host your own content, make the appropriate calls to your server.
如果你自己托管自己的内容,正确访问你的服务器。
If your app sells auto-renewable or non-renewing subscriptions, verify that you’ve implemented the following subscription logic:
如果你的应用程序出售自动更新或非自动更新订阅,验证你已经实现了以下订阅逻辑:
Handle a newly-purchased subscription by delivering the most recently published piece of content—for example, the latest issue of a magazine.
通过传递最新发布的内容片断来处理一个崭新的购买订阅---比如,一本杂志最新的问题。
When new content is published, make it available to the user.
当新内容发布时,用户是可以使用的。
When a subscription expires, let the user renew it.
当一个订阅到期后,允许用户重新更新它。
If your app sells auto-renewable subscriptions, let the App Store handle this process. Don’t try to handle it yourself.
如果你的应用程序出售自动更新订阅,允许应用商店处理该过程。不要尝试自己来处理。
If your app sells non-renewing subscriptions, your app is responsible for this process.
如果你的应用程序出售非自动更新订阅,你的应用程序负责该过程。
When a subscription becomes inactive, stop making new content available. Update your interface so the user has the option to purchase the subscription again, re-activating it.
当一个订阅到期后,停止用户使用新内容。更新你的界面,这样用户就可以选择再次购买该订阅并重新激活它的内容。
Implement some system to keep track of when content was published. Use this system when restoring purchases to give the user access to the content that was paid for, based on the periods of time the subscription was active.
实现一个系统来跟踪最新发布的内容。 当恢复购买时,使用该系统,让用户可以根据订阅激活的时间来访问他们已经支付的内容。
In-App Purchase Programming Guide----(八) ---- Preparing for App Review的更多相关文章
- In-App Purchase Programming Guide----(二) ---- Designing Your App’s Products
Designing Your App’s Products A product is something you want to sell in your app’s store. You creat ...
- In-App Purchase Configuration Guide for iTunes Connect---(一)----Introduction
Introduction In-App Purchase is an Apple technology that allows your users to purchase content and s ...
- In App Purchase Statuses
In App Purchase StatusesThe following are the available states that can be assigned to your in app p ...
- App Store有哪些原因会影响app应用上架呢?(分享)
App Store对于应用上架的审核是非常严格的,很可能一个没有注意到的细节,或者一个你根本没想想到的原因就会导致你的应用上架失败.而排除这些无可避免的错误以外,还有一些导致应用上架失败的原因,非常常 ...
- In-App Purchase Programming Guide----(一) ---- About In-App Purchase
About In-App Purchase In-App Purchase allows you to embed a store inside your app using the Store Ki ...
- Collection View Programming Guide for iOS---(七)---Custom Layouts: A Worked Example
Custom Layouts: A Worked Example Creating a custom collection view layout is simple with straightfor ...
- In-App Purchase Programming Guide----(六) ----Working with Subscriptions
Working with Subscriptions Apps that use subscriptions have some additional behaviors and considerat ...
- In-App Purchase Programming Guide----(七) ----Restoring Purchased Products
Restoring Purchased Products Users restore transactions to maintain access to content they’ve alread ...
- In-App Purchase Programming Guide----(五) ----Delivering Products
Delivering Products In the final part of the purchase process, your app waits for the App Store to p ...
随机推荐
- c# 备份数据
#region 备份数据文件 /// <summary> /// 备份数据文件 /// </summary> /// <param name="strFileN ...
- CentOS6.5升级内核从2.6.32到3.2.14
由于最近想要在服务器上跑IOU,但是在部署VMware后发现不能正常启动,总是提示内核无法载入,什么C header files matching your running kernel were n ...
- centos7 安装php
http://blog.csdn.net/zhaozuosui/article/details/48394409
- Java多线程系列 基础篇09 Object.wait/notifyJVM源码实现
转载 https://www.jianshu.com/p/f4454164c017 作者 占小狼 最简单的东西,往往包含了最复杂的实现,因为需要为上层的存在提供一个稳定的基础,Object作为java ...
- 微信公众号验证TOKEN
服务端验证微信token header('Content-type:text'); define("TOKEN", "weixin"); $signature ...
- 51nod 1040
题目 题解:我们要求的是这个式子: $ \sum\limits_{i = 1}^n {\gcd (n,i)} $ (下面式子中的d都是n的因子) 变形下 $ \sum\limits_{d = 1} ...
- 分享知识-快乐自己:Oracle 创建序列 及 使用序列
1.创建序列语法: create sequence 序列名 [可选参数] 序列名常定义为‘seq_XXX’的形式,创建序列不能使用replace 可选参数说明: increment by: 序列每次增 ...
- 基于 bi-LSTM和CRF的中文命名实体识别
follow: https://github.com/zjy-ucas/ChineseNER 这里边主要识别的实体如图所示,其实也就主要识别人名PER,机构ORG和地点LOC: B表示开始的字节,I ...
- UC Bug
出现bug时,假如把A代码段删了,bug消失,那么此bug是不是一定就是A代码段导致的呢?接着写B代码段,同样bug再现,那么此bug是不是一定就是B代码段导致的呢? 未必,可能是Base代码段和A. ...
- 解决按 backspace键 出现 ^H 问题
输入命令 stty erase ^H #stty 时一个用来改变并打印终端行设置的常用命令stty iuclc # 在命令行下禁止输出大写stty -iuclc ...