InApp Purchase on slow network
- by Chandan Shetty SP
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,