views:

731

answers:

5

Hi there, 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.

A: 

me also looking for the solution.. i am also getting same clustered bug from the app.... Any one have idea how to rectify it..

Pramod Jain
+2  A: 

This is actually fairly complicated. Apple has this message built into their transaction process, so if you let the user get to the point where they are attempting to repurchase a product they already own, they will see this message.

You can use

[[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; 

To restore any transactions they have previously purchased before they get to your buy screen. Run restoreCompletedTransactions before your store GUI loads, and then lock out the buy buttons of any content that is unlocked when a transaction is successfully completed.

Smorpheus
A: 

Did you ever get an answer for this? I've wasted so much time trying to find a fix for it. Its even delaying the release of a big app my company are working on for one of our clients. I just don't understand why CONSUMABLE products should ever state that they have already been purchased. It completely goes against the logic of a consumable product

A: 

Has anyone found a solution yet?

3advance
A: 

Same as above.

My SKPaymentTransaction return with the "SKPaymentTransactionStateFailed" state and an error message: "Transaction Fail with error Error Domain=SKErrorDomain Code=2 "Connexion à l’iTunes Store impossible" UserInfo=0x291de0 {NSLocalizedDescription=Connexion à l’iTunes Store impossible}"

Can't see what isn't working. Did We have to erase all previous download before any request.

Please ....

antoine