Reasons for SKProductsRequest returning 0 products?

后端 未结 14 2866
粉色の甜心
粉色の甜心 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

    I was facing the same problem, Solved it by sending just the IAP Product name rather than my bundle id before the product name. Here is the example :

    works SKProductsRequest *productRequest = [[SKProductsRequest alloc]initWithProductIdentifiers:[NSSet setWithObject:@"my_product"]];

    rather than

    doesn't work SKProductsRequest *productRequest = [[SKProductsRequest alloc]initWithProductIdentifiers:[NSSet setWithObject:@"com.my_site.my_app.my_product"]];

提交回复
热议问题