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

前端 未结 10 856
[愿得一人]
[愿得一人] 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:33

    Check whether there are invalid product id's.

    - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
    
    for (NSString *invalidProductId in response.invalidProductIdentifiers)
        {
            NSLog(@"Invalid product id: %@" , invalidProductId);
        }
    }
    

    If there are invalid product ids visit http://troybrant.net/blog/2010/01/invalid-product-ids/

    It is a very comprehensive check-list for this problem.

    Edit: (13/11/20) Site seems to be down. I'm not sure whether it is a permanent problem but you can see the page from archive.org: https://web.archive.org/web/20200212001158/http://troybrant.net/blog/2010/01/invalid-product-ids/

提交回复
热议问题