I am testing my in app purchase application. While I purchase my consumable product second time with my user account in sandbox environment, it always show me a alert "You've already purchased this but it hasn't been downloaded. Tap OK to download it now.". Is there any way to skip the alert?
Thanks for any help.
You should not see this alert if you are purchasing a consumable after already having done so. If you are, then you have never removed the transaction from the queue. You need to remove it before the store will let you purchase it again.
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
Well, my solution after searching the web for several hours! Don't forget to add transaction observer for your IAP manager!!
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
Your application should add an observer to the payment queue during application initialization. If there are no observers attached to the queue, the payment queue does not synchronize its list of pending transactions with the Apple App Store, because there is no observer to respond to updated transactions.
If an application quits when transactions are still being processed, those transactions are not lost. The next time the application launches, the payment queue will resume processing the transactions. Your application should always expect to be notified of completed transactions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With