iOS SKPaymentQueue transaction observer returning all purchased transactions on app launch

263 views Asked by At

I'm trying to implement auto-renewable subscriptions. I have added a SKPaymentQueue transaction observer in the app delegate and I remove it as soon as the app terminates. Everything works but the problem is, on the next app launch, when the transaction observer is added it triggers updatedTransactions function and it gets straight to the Purchased state, for all the previous purchased transactions. After the user buys the subscription I call [[SKPaymentQueue defaultQueue] finishTransaction:transaction] in the SKPaymentTransactionStatePurchased state. However this does not work. What could I do in order to prevent this? Thanks in advance.

0

There are 0 answers