[SOLVED] Issues with "Product ID" on iOS

GuyCockcroft

  • Posts: 193
Yes, I definitely need global attributes so that they are saved.

colburt187

  • *
  • Posts: 2416
But is it not just mirroring the iap? the attribute has no other use apart from telling your logic the iap has been purchased?

GuyCockcroft

  • Posts: 193
Not exactly, no. One is a simple yes/no, but others set a combination of variables. Awkward!

GuyCockcroft

  • Posts: 193
I've managed to get to the bottom of this I think. Although, I had to get around my info request by comparing the title of the iap with what I had entered into iTunes Connect. If they match, then I know there is a connection to the App Store and the player can make a purchase.

Product ID works fine in the "When a purchase succeeds" event.

My "Restore Purchases" problem was due to the fact that you don't just get one product ID back from the Apple servers when you have multiple IAPs. I was checking them with "If", and "otherwise" blocks so I guess it was only parsing the first product ID sent back if it happened to match. I'm going to mark this as solved. I hope this info helps others!