iPhone StoreKit:应用程序内购买:产品 ID 无效

发布于 2024-10-26 22:37:13 字数 509 浏览 1 评论 0原文

我知道这个问题之前已经被问过,但我仍然面临应用内购买的问题。 我已阅读苹果文档,遵循 http://troybrant.net 的清单/blog/2010/01/invalid-product-ids/

但我仍然面临着使应用程序内购买正常工作的问题。 我按照视频教程创建了 StoreKit,我的代码很好。当我做 NSLog 时 NSLog(@"无效的产品请求计数 %d", [response.invalidProductIdentifiers 计数]); 结果:无效的产品请求计数 1 我已经提交了二进制代码并拒绝了它。我希望这对于 IAP 的运作来说不是一个问题。 为了使应用程序内购买发挥作用,我正在做不同的事情。

如果我犯了错误,有人可以建议我,或者我应该做什么来确保 iap 正常工作。

我们将非常感谢您的回复。

谢谢。

I know this question has been asked before but I am still facing issues with the in app purchase.
I have read the apple document, followed the checklist of http://troybrant.net/blog/2010/01/invalid-product-ids/

But I am still facing problem in making the in app purchase to work.
I followed a video tutorial to create the StoreKit, my codes are fine. When I do NSLog for
NSLog(@"Invalid productRequest count %d", [response.invalidProductIdentifiers count]);
The result: Invalid productRequest count 1
I have submitted the binary code and rejected it. I hope this is not an issue for the IAP to work.
What I am doing different in order to make the in App Purchase to work.

Can someone kindly advice me if I am making a mistake or what should I do to ensure the iap to work.

Your response will be much appreciated.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

菊凝晚露 2024-11-02 22:37:13

如果您使用的是越狱设备,我建议您恢复出厂版本并重试。有些越狱的设备在沙盒中的应用程序购买中运行测试时存在问题。

if you are working on jailbroken device, I'd suggest you to restore factory version and try again. Somewhat jailbroken device has an issue to run testing in app purchase in sandbox.

墨小墨 2024-11-02 22:37:13

使应用内购买发挥作用所采取的步骤:

1) 创建唯一的应用程序 ID:com.yakimbi.inAppPurchase

2) 创建配置文件,下载并安装它。

3) 将应用程序添加到 iTunes Connect App Store。

4) 上传app二进制文件,并拒绝。状态为开发者拒绝。

5) 在应用购买的管理您中添加产品,ProductID为com.yakimbi.inAppPurchase.ProductTest1,创建为非消耗品。

6) 编写StoreKit代码来请求产品。

7) 添加产品后等待超过48小时。

8) 创建一个测试用户帐户。

9) 更新了代码,支持事务。

10) 在设备上注销我的帐户。

11) 在设备上运行应用程序。

12) 但我得到的 inValidPurchaseIdentifier 计数为 1。

13) 从未提示输入用户名和密码。

创建此内容时我遗漏了哪些步骤。我希望有人能指导我。谢谢。

The steps taken to make the in-app-Purchase to work:

1) Created unique App ID: com.yakimbi.inAppPurchase

2) Created Provisioning Profile, download and installed it.

3) Add the application to iTunes Connect App Store.

4) Upload the app binary file, and rejected it. The status is Developer Rejected.

5) The product is added in Manage You in App Purchase, ProductID is com.yakimbi.inAppPurchase.ProductTest1, created as non-consumable item.

6) Wrote the StoreKit code to request the Product.

7) Waited for more then 48hours once the product is added.

8) Created a Test User account.

9) Updated the code with supporting transaction.

10) Sign Out my account on the device.

11) Run the app on the device.

12) But I get inValidPurchaseIdentifier count 1.

13) Never got prompted for username and password.

What steps have I left out while creating this. I hope someone could guide me. Thank you.

初心 2024-11-02 22:37:13
  • 尝试从设备中手动删除该应用程序。
  • 在设备上注销您的帐户。
  • 然后重置设备并重试。

这些对我有用。

  • Try to remove the app manually from the device.
  • Sign out of your account on the device.
  • Then reset the device and try again.

These worked for me.

居里长安 2024-11-02 22:37:13

重新启动我的 Macbook,一切正常。

Restarted my Macbook, and it worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文