what does Callback mean?

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 Member Posts: 284
    edited September 2017

    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).

  • 3absh3absh Member Posts: 601

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

    is this normal??

  • pHghostpHghost London, UKMember Posts: 2,342

    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.

  • 3absh3absh Member Posts: 601

    yes, i never used "contains"

  • birdboybirdboy Member Posts: 284
    edited September 2017

    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).

  • 3absh3absh Member Posts: 601

    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.