简体   繁体   English

IOS:应用内购买适用于 TestFlight,但不适用于发布

[英]IOS: In-app purchases work on TestFlight but dont work on release

In-app purchases don't work in app's release version (from AppStore).应用内购买不适用于应用的发布版本(来自 AppStore)。

In TestFlight I can purchase the items.在 TestFlight 中,我可以购买这些物品。 But in Appstore version I cannot (nothing happens).但在 Appstore 版本中我不能(什么都没有发生)。

I wonder how my app has passed the AppleReviewTeam and Ready for Sale...我想知道我的应用程序是如何通过 AppleReviewTeam 并准备出售的...

When I tap "buy-button" purchase should happen and it is working on TestFlight.当我点击“购买按钮”时,应该会发生购买并且它正在使用 TestFlight。 But in Appstore-version of the app it is do not working.但在应用程序的 Appstore 版本中,它不起作用。 Also it can 'parse' (and show in app) price of the in-app purchases.它还可以“解析”(并在应用中显示)应用内购买的价格。

The problem was occured when I started using new Xcode 11.4.当我开始使用新的 Xcode 11.4 时出现问题。

  1. I upload the app in TestFlight via Xcode11.4.我通过 Xcode11.4 在 TestFlight 中上传应用程序。

  2. In-app purchase work properly in TestFlight tests.应用内购买在 TestFlight 测试中正常工作。

  3. I send to review and the app succesfully "Ready for sale".我发送审查和应用程序成功“准备出售”。

  4. I download the app from Appstore.我从 Appstore 下载应用程序。

  5. In-app purchase dont work (when I try to buy there is nothing happens).应用内购买不起作用(当我尝试购买时没有任何反应)。 Internet connection is ok.互联网连接正常。

May it be the problem with provisioning profiles or what?可能是配置文件的问题还是什么?

It passed about several weeks, Apple support can't help me (not via phone not via email).它过去了大约几个星期,Apple 支持无法帮助我(不是通过电话,也不是通过电子邮件)。

Maybe community can hep me?也许社区可以帮助我? Please.请。

Each in-app purchase should be cleared for sale for a review at the time of deploying in Features section of the app in appstoreconnect ( Appstore Connect->YOUR_APP->Features->In App Purchase->YOUR_IN_APP_PURCHASE->clear for sale ).每个应用内购买都应在 appstoreconnect 的应用功能部分部署时进行审核以供审核( Appstore Connect->YOUR_APP->Features->In App Purchase->YOUR_IN_APP_PURCHASE->clear for sale )。

Also when you upload the app for the first time, you should send the in app purchase also for review along with the app.此外,当您第一次上传应用程序时,您还应该将应用程序内购买连同应用程序一起发送以供审核。 If you didn't add in app purchase at that time, the app will only be reviewed, not in app purchase.如果您当时没有添加应用内购买,则该应用只会被审核,而不是应用内购买。

Check if your in app purchase is in approved state in features section.检查您的应用内购买是否在功能部分的批准state 中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM