Consumables acting as non-consumables

I'm currently developing an iOS game which has consumable (add 3 lives) and non-consumable (infinte lives) IAPs.

If I purchase the consumable with my sandbox user, it tells me it's already been purchased and will be restored. Also, when the game is restarted, it will pile on all purchases of the consumable, so I end up with 15+ lives.

My App Store Connect setting seem to fine (I'm missing meta data, but I don't think this should be problem while still developing, no?).


Has anyone had a similar issue?

Replies

Show your code for checking on/restoring previous purchases...

> " it tells me it's already been purchased and will be restored"


If this is a message sent by StoreKit when you do a restoreCompletedTransactions then your IAP is listed by StoreKit as a non-consumable and that explains the problem. You need to create a consumable IAP under a different productIdentifier.


If this is a message that your code is generating then your code is restoring the consumable IAPs incorrectly.