what does Callback mean?
3absh
Member Posts: 601
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
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).
during testing in BETA i get "purchased" without a prompt for the IAP to buy it
is this normal??
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.
yes, i never used "contains"
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).
That's exactly what I'm trying to fix, because the item is consumable