ios - 应用内购买 - 空产品列表

标签 ios sdk in-app-purchase

我正在尝试了解如何使用应用内购买。我读了很多文档并看到了很多示例代码,但我不明白为什么产品列表是空的。根据文档和论坛我做了这个:

  1. 在 iTunes connect 上设置契约(Contract)。
  2. 在配置门户上使用唯一的 bundle ID 创建 AppID
  3. 为此 AppId 创建并安装配置文件并启用应用内购买
  4. 在 iTunes connect 上创建应用程序。
  5. 为此应用程序创建购买。
  6. 提交申请。
  7. 拒绝申请。

在代码中,我尝试通过产品 ID 接收产品信息,结果我看到空列表。但是,我可以看到一系列无效的产品 ID。

你能帮我理解哪里出了问题吗?

谢谢。

<小时/>

根据苹果文档:

Follow these steps to test your application in the sandbox.
- Log out from your iTunes account on the test iOS device.
- Before you can test your application, you must first log out of your regular iTunes account. iOS 3.0 includes a Store category in the Settings application. To log out of your iTunes account, exit your application, launch the Settings application and click the Store icon. Sign out from the currently active account.
- Important: Do not sign in with your test account in the Settings application.
- Launch your application.
- Once you have signed out of your account, exit Settings and launch your application. As you make purchases from your application’s store, Store Kit prompts you to authenticate the transaction. Log in using your test account to approve the payment. No financial transaction takes place, but transactions complete as if a payment was made.

我已经尝试过,当我询问产品时,看不到“Store Kit 提示您进行身份验证”。也许我需要在 xCode 中设置项目?

<小时/>

嗯...

我可以在 iOS 5 的模拟器中看到产品,但无法购买。魔法。

最佳答案

尝试删除设备上的版本和应用。我认为这个应该可行。

关于ios - 应用内购买 - 空产品列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8140824/

相关文章:

android - 是否可以从 linux 层上运行的任何脚本/程序访问 Android API?

android - Android:免费提供应用内购买商品

iOS In App Purchase 沙盒测试说我密码错误

ios - 在 App Purchase 状态 Waiting for Upload

iphone - 在 Interface Builder 的 iPad xib 中显式使用 @2x 图像

ios - UINavigationController 导航栏上方的空间

iOS 7.1 为什么我的 UIScrollView 在显示键盘时滚动?

ios - 核心数据、Xcode 4.5 和在数据模型中创建获取的请求

android - 无法使用模拟器从 Eclipse 运行 android 应用程序

java - xml 布局错误 :The following classes could not be found: - android. support.v4.view.Viewpager