Problem with IAP in the Viewer (and the Ad Hoc)

EatingMyHatEatingMyHat Member Posts: 1,246
edited April 2012 in Working with GS (Mac)
I have a fairly basic IAP logic, however when I run it in the viewer I can select: Success, Cancel or Failure. I setup scenes for each one and:
1. Cancel gets to the Cancel scene
2. Failure gets to the Fail scene
3. Success does nothing, it does not go to the Success scene and does not executes the IAP logic

Any ides what might be wrong?

The IAP is based on a table, it is all consumable (adding coins). This is the what I change the attribute to:
game.TotalCoins +tableCellValue( game.IAPTable , self.IAPItem ,2)

The Row (self.IAPItem) is set up correctly, I tried it with an actual number as well.
Column 2 include the value. Even when I change the logic to a number it does not work.

Thanks,
GR



Follow Eating My Hat on Facebook, Twitter and our Blog
Check out my templates in the GS Marketplace or at the store

Best Answer

Answers

  • jckmcgrawjckmcgraw Member Posts: 647
    @EatingMyHat

    I could easily be wrong but... Does it simply have to do with the fact that iAP won't trigger unless it is actually in the app store?
  • 921creative921creative Member, PRO Posts: 140
    To my knowledge IAP will not work in the Viewer. You must run it in Sandbox mode in an ad hoc version of your game.
  • EatingMyHatEatingMyHat Member Posts: 1,246
    @jckmcgraw @921creative

    The viewer allows you to simulate IAP response (success, cancel, fail). The success simulation is not triggered.

    Thanks,
    GR
  • EatingMyHatEatingMyHat Member Posts: 1,246
    edited April 2012
    .
  • GingahNinja47GingahNinja47 Member Posts: 1
    Could you tell me how you solved it? 'Cause I'm having the same problem.
  • mounted88mounted88 Member Posts: 1,113
    @gingahninja47 this is over a year and a half old thread. If your having problems it would probably be better to start a new thread and explain your problem.
  • -Timo--Timo- Member Posts: 2,313
    can you accept your own comment as answer? ;)
Sign In or Register to comment.