First time using IAP, question

edited March 2016 in Working with GS (Mac)

Hey everyone. This community has always been awesome for me in the past when it comes to answering questions.

I'm about to release an update for Jump Jack with a bonus level pack that can be purchased with an IAP.

I've read through the documentation and I think I've got my rules set up correct.
I've got a scene you go to that has a button to click to buy the pack.

The actor for the button has these rules:
REQUEST PURCHASE DATA: callback: self.callback

RULE: IF self.callback = 1 and touch is pressed then:

Then I will use a rule to check the purchase table to make sure that item is purchased and it will take you to the bonus level selection screen

Two Questions:

  1. Does everything above look correct?

  2. When a user exists the game and comes back in, will that purchase table still say that the item has been purchased so they can go straight into the bonus level screen. Or do I need to have the action "REQUEST PURCHASE DATA" on the start up screen so that the game knows that it has been purchased? Right now I only have that action in the IAP menu screen.

Thanks everyone.


  • supafly129supafly129 Posts: 414
    edited March 2016

    I believe when user successfully purchases something (i.e. when that item shows as "purchased" in the table), you would then have a rule that immediately after saves your "bonus level pack" attribute as true and load that attribute at the start of the game.

    This way, the user only has to "Restore Purchases" via a restore button if they are logging in from a new device or if they delete the app and redownload. From what I understand, "Restoring" automatically will make the login prompt appear (since it's requesting purchase data) which might freak some users out at the start of the game, but others may have a different method/preference with this. You should be able to confirm if it works via ad hoc if you create your non-consumable IAP in itunes connect, but I can try to whip up a screenshot of how i have it set up once i get home!

  • Thanks @supafly129 makes sense, wouldn't be good to have the log in screen appear.

  • supafly129supafly129 Posts: 414

    Just attached an example of how I have mine setup, hope it helps!

  • supafly129supafly129 Posts: 414

    made a slight revision

  • Thanks!

Sign In or Register to comment.