2 Replies
      Latest reply on Aug 15, 2019 6:38 AM by PBK
      Graig Level 1 Level 1 (0 points)

        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?

        • Re: Consumables acting as non-consumables
          KMT Level 9 Level 9 (14,815 points)

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

          • Re: Consumables acting as non-consumables
            PBK Level 7 Level 7 (3,265 points)

            >  " 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.