Hi,
We’re developing our 1st children app and we have 6 different IAPs in our free app. There is no apparent problem buying the IAP with our test accounts. But we do face a problem of restoring IAPs. When we click the designated restore button, it only restores 2 of the 6 IAPs. Repeating the restore process does not restore any of the remaining 4. However, if we manually buy each of the 4 IAPs again, iTunes says it has been purchased and we could restore each of them successfully.
We’re building our app with Corona SDK v748 & Kwik 1.8.1 for iOS. Below is the code:
local onrestorebuyTouch = function(event)
if event.phase=="ended" then
store.restore()
transitionStash.newTransition\_768 = transition.to( restoring, {alpha=restoring.oldAlpha, time=0, delay=0})
local myClosure\_switch = function()
disposeAudios()
disposeTweens()
director:changeScene( "page\_1", "overFromLeft" )
end
timerStash.newTimer\_773 = timer.performWithDelay(10000, myClosure\_switch, 1)
end
end
--(10) regular layer
restorebuy = ui.newButton{
defaultSrc=imgDir.."p20\_restorebuy.png",
defaultX = 141,
defaultY = 113,
overSrc=imgDir.."p20\_restorebuy.png",
overX = 141,
overY = 113,
onRelease=onrestorebuyTouch,
id="restorebuyButton"
}
restorebuy.x = 953; restorebuy.y = 712; restorebuy.alpha = 1; restorebuy.oldAlpha = 1
menuGroup:insert(restorebuy)
menuGroup.restorebuy = restorebuy
Thanks,
Ben. [import]uid: 55445 topic_id: 22471 reply_id: 322471[/import]