iOS 应用内购买 - “无效的产品 ID”发布版本,而非开发版本
我创建了一个新应用程序并将二进制文件上传到 iTunes Connect,然后使用测试用户帐户在模拟器和设备上测试 IAP。两者都有效。
我提交了最终的应用程序,它目前已在 App Store 上发布。但是,从我的设备中删除开发版本并从 App Store 下载我的应用程序来测试 IAP 后,该应用程序立即收到“无效的产品 ID:”错误。
开发版本再次使用测试用户帐户运行,但在商店中运行时无法运行并返回无效的产品 ID。有什么想法吗?如果有人想测试这个(如果只有我一个人),该应用程序称为“ContaX”,并且免费包含广告 - 您不需要实际购买升级,只需看看点击“删除广告”选项后它是否崩溃即可。
I created a new app and uploaded the binary to iTunes Connect, then tested IAP using the test user account, both on the simulator and on the device. Both worked.
I submitted the final app and it is currently live on the App Store. However, after deleting the development version from my device and downloading my app from the App Store to test IAP, the app immediately receives an "Invalid Product ID:" error.
Once again, the development version worked using the test user account, but live on the store it does not work and returns invalid product ID. Any ideas what this might be? If anyone wants to test this (in case it's just me) the app is called "ContaX" and is free with ads - you don't need to actually buy the upgrade, just see if it crashes after tapping the remove ads option.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我建议您在应用获得批准后等待 24 小时。
有时,应用内购买需要更多时间才能在已发布的应用程序中可用。
I advise you to wait for 24 hours after your app is approved.
Sometimes it takes more time for the in app purchases to be available in the released application.
我也遇到了这个问题,我的应用程序由于这个问题被拒绝了两次。我去苹果开发者论坛寻求解决方案。问题可能出在审核团队的设备或环境上。
这是完整线程的链接:https://devforums.apple.com/thread/233371
我想这对你也有用。
I am also suffering with this issue and my app has rejected two time due to this issue. I went to Apple Developer Forum to get the solution. The problem is might be with Review team's device or environment.
Here is the link of full thread: https://devforums.apple.com/thread/233371
I think it will work for you as well.
仔细检查您提交应用程序时使用的捆绑包 ID 以及您发送到应用程序的产品 ID。他们必须匹配。
您可能不小心提交了具有不同捆绑包 ID 的应用程序。
Double-check the bundle ID you've submitted the app under and the product IDs you're sending to the app. They have to match.
You may have accidentally submitted an app with a different bundle ID.
在与这个问题斗争了一段时间后,我意识到我正在使用“Apple ID”来获取应用内购买,而不是“产品 ID”。因此,请确保您使用的是“产品 ID”,而不是产品的“Apple ID”!
After fighting this problem for a while I realized I was using the "Apple ID" to get the In App Purchases rather than the "Product ID". So, make sure you're using the "Product ID" and NOT the product's "Apple ID"!
我想分享我们的经验。我们的一款应用程序自发布以来没有任何购买。已经一个多月了。我们在开发阶段以沙盒模式进行了应用程序购买测试,一切正常。
当我们从设备中删除开发应用程序并从应用程序商店安装该应用程序时,我们在购买过程中收到
无效的产品 ID
。我们仔细检查了一切并尝试了很多事情。我们认为解决这个问题的方法是在 iTunes 连接中切换“清除出售”。
我们有 3 个自动续订订阅。在IAP页面中,我们取消选中
Cleared for Sale。
然后保存,然后再次重新选中Cleared for Sale
,在每个产品上再次保存。从手机中删除应用程序并从 App Store 重新下载。似乎什么也没有发生。 30 分钟后,一项自动续订订阅突然开始工作。另外 2 个订阅仍然不起作用。 5 小时后,所有 3 个订阅都开始神奇地工作。
I'd like to share our experience. One of our apps did not have any purchase since release. It was over a month. We have tested in app purchase during development phase in sandbox mode, everything was ok.
When we deleted the development app from our device and installed the app from the app store, we got
Invalid product id
during purchase.We double checked everything and tried many things. What we think done the trick is toggle "Cleared for Sale" in the iTunes connect.
We have 3 auto renewing subscriptions. In IAP page, We uncheck
Cleared for Sale.
then save, then again recheckCleared for Sale
, saved again on each product. remove app from the phone and download again from App Store.Nothing seems to happen. After 30 minutes suddenly one auto renewing subscription started working. 2 other subscriptions still didn't work. After 5 hours all 3 subscriptions started working magically.
我们也看到了类似的情况。在具有 8 个自动续订订阅 IAP 的新 tvOS 应用程序上,在发布后的前 30 小时左右,没有一个 IAP 可用。然后其中一个可用,现在距发布 40 小时,仍然只有 8 个 IAP 中的 1 个可用。
We are seeing something similar. On a new tvOS app with 8 auto-renew subscription IAPs, for the first 30 hours or so after release, none of the IAPs were available. Then one became available and now we are at 40 hours since release with still only 1 of 8 IAPs available.