Good way to handle IAP timeouts?
Do anyone know of a good way to handle timeouts for IAPs? Because of the lag to the server I now "pause" the game and show a "Loading Purchase" screen until the IAP gets a connection the apple server. But if for some reason it takes to long I would like it to abort, is there any way to do this without using a counter or something? I am afraid that could be unreliable because some users may take more time to get a connection and also if the counter is always counting up it could reach the value that I want to abort AFTER the user clicks he wants to buy and another call is made to the server to retrieve the users information. I have seen the application automatically pauses when the prompt appear, but between those the counter goes up and I dont know of a way to detect when a response is coming in so I could reset the counter in that case. Is there a good smooth way to handle this?