In App Validation During Simulation

jdgouldjdgould Member, PRO Posts: 114
edited May 2012 in Working with GS (Mac)
I have an In-App-Purchase to unlock some options in my game, but once you click the home button or reset game, the in app purchases are locked again, is that normal? It is a boolean (true, false), not a consumable item.

I just want to make sure this is normal, or should it stay unlocked if my code is working correctly?

Thanks,
Jeff

Best Answer

  • stackpoolestackpoole Melbourne, Victoria, AustraliaPosts: 473
    Accepted Answer
    make sure you have a save attribute some where in your game - e.g. in your "success" scene

    then you also need a "load attribute at the start of the game

    Sydney Swans 2014!!

Answers

  • EatingMyHatEatingMyHat Member Posts: 1,246
    Make sure you Save immediately after the IAP happened... and for sure make sure to Load at startup.

    If you are doing all of that, you might be running into the old (but still valid) Load/Save issue (which does not Load or Saves). It seems that people agreed that writing the Key in the behavior text box works while writing the key in the expression box have problems.
  • jdgouldjdgould Member, PRO Posts: 114
    I had the load attribute at the beginning of the game, but I thought I read somewhere that it will automaticlaly be saved. I will add a save attribute as well.

    Thanks!
  • ecscessecscess Member Posts: 23
    This is happens to me too. My load Atribute is in Intro app scene and save attribute is immediately under IAP. Key is the same and was written in text field not in expression editor. What should I do

  • EatingMyHatEatingMyHat Member Posts: 1,246
    Non-Consumable IAP are saved in the Apple system and can be restored. However, that does not come to replace your own Save/Load, it is only for recovery.

    As an example, if you don't save and relay on the Apple server, 3 things will happen:
    1. Consumables will not be saved
    2. If there is no network, players will not have their IAP items
    3. You'll have pissed off customers
  • ecscessecscess Member Posts: 23
    My IAP is not consumable. Should I publish the game as it is and hope that Apple will save the attribute? Or should I wait for the problem to be solved?
  • EatingMyHatEatingMyHat Member Posts: 1,246
    Bad idea. You are screwing up your customers by releasing the app with IAP that does not work well (they will buy, but it will be lost). There are no bugs that I identified in this process and I tested it heavily in my game - there is something wrong in your code.

    You have to use Save and Load for all IAP items. Apple will not do it for you. The IAP restore is for recovery or switching devices.
Sign In or Register to comment.