iPhone In App Purchase - response.products are still empty?

前端 未结 10 802
[愿得一人]
[愿得一人] 2020-12-07 23:09

Basically, I\'ve tried to set up in app purchases on a test app before I implement them into a proper app that my company is working on. I\'ve read the Store kit pdf and oth

相关标签:
10条回答
  • 2020-12-07 23:19

    In my case the reason was hosting of content by Apple turned on by mistake. The product was available only when I turned it off

    0 讨论(0)
  • 2020-12-07 23:20

    Just delete the application on your device, and start it again from XCode. It fixed the problem for me.

    No need to upload the binary, or wait for hours after creating the in-app purchase in iTunes Connect.

    0 讨论(0)
  • 2020-12-07 23:22

    Check if your Bundle Identifier (e.g. com.company.appname) in XCode matches the one in iTunes Connect.

    You do not have to submit the binary for it to work.

    0 讨论(0)
  • 2020-12-07 23:28

    Try to add a Free Subscription product. If it appears on the response then there is nothing wrong in your code. Since Free Subscription is the only type that doesn't require Agreements, Tax, and Banking and if it appears and the other types don't then it is a issue related to your contract.

    0 讨论(0)
  • 2020-12-07 23:29

    In my case (MacOS) I was creating a test application (with the same bundle ID of main application). SKFetchRequest started returning product Ids for test application only after I set Bundle Name (Binary name) the same as in original application.

    0 讨论(0)
  • 2020-12-07 23:32

    No need to upload binary for Sandbox testing of InAppPurchase. You just have to add InAppPurchase item in iTunesConnect and put it in "Ready to submit"(must) state only. If you submit it for review it will always give ou response.product empty.

    0 讨论(0)
提交回复
热议问题