Reasons for SKProductsRequest returning 0 products?

后端 未结 14 2867
粉色の甜心
粉色の甜心 2020-12-25 09:28

I\'m trying to set up IAP but after making a call to retrieve the products using SKProductsRequest the SKProductsResponse array within my delegate has a count of 0. Here\'s

14条回答
  •  太阳男子
    2020-12-25 10:13

    In the off chance that you've overlooked this, the product identifier match is case sensitive.

    So, if you've created a product on Apple with an identifier of say

    com.yourcompany.product1

    and you call the product request with a product identifier of

    com.yourcompany.Product1

    Your list will be returned with zero products.

    This kept me busy for a while :-)

    ps: On a separate project, I found SKProductsRequest only started returning products after a restart. So, if all else fails, try restarting your Mac.

提交回复
热议问题