GameSalad

what does Callback mean?

abuabed84abuabed84 Posts: 408Member, PRO

I know -1 is No connection
0 I believe is trying to connect
and 1 is connected

My question is does 1 simply mean there is a connection or does it mean the purchase has been made?

Comments

  • birdboybirdboy Posts: 281Member, PRO
    edited September 14

    The callback has nothing to do with the state of the in-app item.
    When your game is able to connect to the servers it fills out the in-app table and returns 1. So the callback becoming 1 simply means your table was filled. You then have to check the content of the "State" column in the in-app table to know the actual state of the purchase (unpurchased/pending/purchased).

  • abuabed84abuabed84 Posts: 408Member, PRO

    during testing in BETA i get "purchased" without a prompt for the IAP to buy it

    is this normal??

  • pHghostpHghost London, UKPosts: 2,103Member

    In your logic, re you sure you are checking the text "is" and NOT "contains" as the qualifier?

    UNpurchased still contains purchased, so it can get confused.

  • abuabed84abuabed84 Posts: 408Member, PRO

    yes, i never used "contains"

  • birdboybirdboy Posts: 281Member, PRO
    edited September 14

    What do you mean by beta? I guess you mean an adhoc version?
    Then this should only happen if you already bought the in-app purchase at some point in the past or if your in-app logic is somehow busted (like setting the state manually or something).

  • abuabed84abuabed84 Posts: 408Member, PRO

    Then this should only happen if you already bought the in-app purchase at some point in the past

    That's exactly what I'm trying to fix, because the item is consumable

Sign In or Register to comment.