Sample app built and seemed to of worked fine on the device. Here’s the output
Nov 22 23:53:38 iPAD InAppPurchase[1596] <Warning>: Using Apple’s in-app purchase system.
Nov 22 23:53:39 iPAD wifid[15] <Notice>: WiFi:[406875219.159456]: Client itunesstored set type to background application
Nov 22 23:53:39 iPAD wifid[15] <Notice>: WiFi:[406875219.161163]: BG Application: Not Present, BG Daemon: Present. Daemons: networkd itunesstored dataaccessd imagent apsd
Nov 22 23:53:39 iPAD wifid[15] <Notice>: WiFi:[406875219.162126]: Already connected to QKFF9.
Nov 22 23:53:39 iPAD InAppPurchase[1596] <Warning>: After store.loadProducts, waiting for callback
Nov 22 23:53:40 iPAD securityd[75] <Error>: OCSPResponse: now + maxAge > latestNextUpdate, using latestNextUpdate
Nov 22 23:53:40 iPAD securityd[75] <Error>: OCSPResponse: now + maxAge > latestNextUpdate, using latestNextUpdate
Nov 22 23:53:40 iPAD InAppPurchase[1596] <Warning>: In loadProductsCallback()
Nov 22 23:53:40 iPAD InAppPurchase[1596] <Warning>: event, event.name table: 0x17d6db20 productList
Nov 22 23:53:40 iPAD InAppPurchase[1596] <Warning>: table: 0x17d87ac0
Nov 22 23:53:40 iPAD InAppPurchase[1596] <Warning>: #event.products 0
Nov 22 23:53:40 iPAD InAppPurchase[1596] <Warning>: Loading product list
Nov 22 23:53:45 iPAD wifid[15] <Notice>: WiFi:[406875225.242088]: Client itunesstored set type to normal application
Nov 22 23:53:45 iPAD wifid[15] <Notice>: WiFi:[406875225.243606]: BG Application: Not Present, BG Daemon: Present. Daemons: networkd dataaccessd imagent apsd
Nov 22 23:54:24 iPAD wifid[15] <Notice>: WiFi:[406875264.790004]: ManagerClient[“aggregated”] setProperty[“LoggingEnabled”] = FALSE
However, I got a message “In-App purchases is not supported on this device.” inside the app.
After this I re-built the previous app, here’s the output:
Nov 22 23:57:19 iPAD Prototype_App[1622] <Warning>: Active: nil
Nov 22 23:57:19 iPAD Prototype_App[1622] <Warning>: Runtime error
…ts/iPadApp/Prototype_App/magstore.lua:86: attempt to call field ‘init’ (a nil value)
stack traceback:
[C]: ?
[C]: in function ‘error’
?: in function ‘gotoScene’
…ojects/iPadApp/Prototype_App/main.lua:383: in main chunk
Nov 22 23:57:19 iPAD Prototype_App[1622] <Warning>: Runtime error
stack traceback:
[C]: ?
[C]: in function ‘error’
?: in function ‘gotoScene’
…ojects/iPadApp/Prototype_App/main.lua:383: in main chunk
I confirmed that it’s using almost the same code in both lua files… the store variable is never getting overridden anywhere either.