Rob/Brent/(others) - I think I may have an issue here…could you help clarify my previous question above?
I’ve noted I have some users who are not able to “restore” previous purchases, and looking back at my code I’m thinking it may be due to the timeout I’ve implemented (not sure). The relevant code lines are here (below).
Question :
Q1) should I take out the “timer” concept below altogether? (but if yes, what happens if there’s a network during the call - i.e. could the app get “stuck” on the IAP dialog box I show then?)
Q2) if I leave the timeout check, what timeout value? e.g. 30 seconds? (is there a built in timeout in the Corona implementation of IAP perhaps that will trigger and return a result after X seconds anyway back to our code?)
local TIMEOUT = 6000 -- ms -- Commence if action == "purchase" then myIAP:purchase( {iap\_identifier\_string} ) elseif action == "restore" then myIAP:restore() else error("Action not recognized: " .. action) end -- Start Timer timeoutTimer = timer.performWithDelay(TIMEOUT, function(event) updateDialogForResponse("Unsuccessful", "Nothing to Restore") end )