Reputation: 1950
After initiating a purchase, it takes a few seconds to for the AppStore alertview to popup before signing in/entering password to confirm purchase.
SKPayment * payment = [SKPayment paymentWithProduct:product];
[[SKPaymentQueue defaultQueue] addPayment:payment];
What is recommended to display while this is happening? At the moment it appears that nothing happens when you press my buy button so it's possible to press it multiple times.
I tried using an UIAlertView but had the same problem as this guy: iOS: In App Purchase with buying progress indicator UIActivityIndicatorView
Thanks
Upvotes: 1
Views: 335
Reputation: 119031
A UIActivityIndicatorView
, in some form. This could be on an alert, a HUD or placed directly onto the table cell (or similar) interface that offered the options to the user. The only thing is that you need to show some activity. Preferably, you should also not block the user from cancelling and doing something else (don't make them want to kill the app if they get bored waiting...).
Upvotes: 1