How to know when the user touches the OK button of the last StoreKit alert "Thank you. Your purchase

Posted by Walchy on Stack Overflow See other posts from Stack Overflow or by Walchy
Published on 2010-04-04T20:23:27Z Indexed on 2010/04/04 20:33 UTC
Read the original article Hit count: 225

Filed under:
|

I have integrated "In App Purchase" in a game to let the user unlock more levels. Everything works fine, but I have a little problem with the last alert "Thank You. Your purchase was successful. [OK]". My program gets informed that the transaction was successfully completed before this last alert pops up and so my game starts running again - then the alert comes up, annoying the user. I would like to wait with my game running until the user touches the "OK" button, but since it is an alert from StoreKit I have no idea when this happens or how I could catch it.

I don't want to create another dialog (this time my own, therefor under my control) below the alert, just asking for touching "OK" again - would be a bad user experience.

Anybody have any ideas?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about in-app-purchase