noi100
noi100

Reputation: 35

Detect re-purchase of in-app purchase

How can I detect this situation in code:

My problem is that in testing, I can see a message box saying "you already purchased...", but in the application updateTransactions not called.

In this situation I need to change to full version. How can I detect this event? I.e., How can I know in my application that the user already purchased so I will "open" to full version?

Thanks.

Upvotes: 1

Views: 831

Answers (1)

Aleksejs Mjaliks
Aleksejs Mjaliks

Reputation: 8707

Use [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]. It will force your app to receive transactions again.

See docs:

Upvotes: 1

Related Questions