InApp Purchase on slow network

Posted by Chandan Shetty SP on Stack Overflow See other posts from Stack Overflow or by Chandan Shetty SP
Published on 2010-05-24T14:38:23Z Indexed on 2010/05/24 14:41 UTC
Read the original article Hit count: 334

My InApp purchase code works fine in normal network, but in very slow network(safari browser will take 5 min to load a webpage). I am not getting any delegates...

- (void)requestDidFinish:(SKRequest *)request 
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response

So my code blocks indefinetly because i am setting setUserInteractionEnabled to FALSE initially and setting it back to TRUE in the above delegates...

[[[UIApplication sharedApplication]keyWindow]setUserInteractionEnabled:FALSE];

Is it possible to check the network status before creating "SKProductsRequest" or any better way to implement inApp Purchase?

Thanks in advance,

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c