After I run store.init(“apple”, listener), “listener” is called with the event data below, even though I haven’t run store.purchase() yet. I thought “listener” only would be called AFTER I run store.purchase().
Question 1. The documentation says nothing about “listener” being called after store.init(). Is “listener” called after store.init() by design, or is this a bug in Corona?
Question 2. Are there any properties in the transaction object I can use to detect a “false” listener call from store.init()? (I’m asking because event.transaction is coded as “userdata” which cannot be dumped.)
[Lua]
event = {
name = “storeTransaction”,
transaction = userdata: 0x********,
}
transaction.state = “failed”
transaction.errorType = “unknown”
transaction.errorString = “Cannot connect to iTunes Store”
[/Lua]