iOS 内购问题归纳

开发新的APP,做iOS内购开发的时候,经常会遇到在开发者平台上配置好了商品信息,但是在代码里面请求不到商品信息的问题

  1. 在开发者平台上添加内购商品信息的时候要,要确保添加了价格信息+订阅界面截图+订阅群组的本地化化版本
  2. 确保所有的信息添加保存后,商品信息显示的是准备提交状态,如果是元数据丢失,就说明信息没有填完整。
  3. 如果已经是准备提交状态,代码里面还是获取不到商品信息,还需要检查 税务信息,银行卡信息是否填写完成了。
  4. 如果能获取到非法的商品ID信息,就检查一下几个问题
  • Tax, and Banking Overview. When you renew your developer membership, see if you need to make updates to your agreements. When your developer membership expires, your financial agreements expire as well.
  • Your app uses an explicit App ID.
  • In-app purchases are cleared for sale in App Store Connect. See Set availability for in-app purchase.
  • Modified in-app purchases are available to the App Store servers.
  • The product identifier specified in App Store Connect matches the identifier used by the SKProductsRequest object in your app.
  • The content of your Apple-hosted product has been uploaded to App Store Connect. See Upload in-app purchase content to App Store Connect.

你可能感兴趣的:(iOS 内购问题归纳)