In-app purchase: request products randomly, get some valid product and some invalid products?

I use the in-app purchase feature. Today I get a strange problem.

I am trying to get a list of products SKProductsRequest. The problem is that sometimes I received invalidProductIdentifiers, but sometimes I received valid products.

SKProductsRequest *productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObjects:objects]]; productsRequest.delegate = self; [productsRequest start];

Example: I send a request for information about 30 products: sometimes 10 products are obtained, sometimes 0, sometimes 30, ... So strange.

In the past, it works well. But one day a problem arises.

I tried (searched and asked my colleagues) a day, but still can not understand why.

Please, help.

Thank.

+4
source share
2

.

" ". .

, Apple.

0

, wild card (*), In-App, , .

, 24 , . .

, , , , .

- (void)productsRequest:(SKProductsRequest )request didReceiveResponse:(SKProductsResponse )response {

for (NSString *invalidProductId in response.invalidProductIdentifiers)
    {
        NSLog(@"Invalid product id: %@" , invalidProductId);
    }
}

, , http://troybrant.net/blog/2010/01/invalid-product-ids/

.....

+2

Source: https://habr.com/ru/post/1656077/


All Articles