How to skip the alert "You've already purchased this but it hasn't been downloaded"

in-app-purchase, iphone

Solution

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];

Problem

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.

Original source