seems like a new strange behaviour here. Recently I’ve got reports from players: they can’t restore his purchases. Hmm, before this month I haven’t reports about this issue. I was absolutely sure that all ok with this part of code and tested it before (in 2017).
Today I’ve a new test with debug build and what I saw in console:
after that listener immediately catch 3 callbacks with state 1 iap.TRANS_STATE_PURCHASED (there are 3 in apps in my game and all was made on the testing device)
pushed “restore button” in my game and call iap.restore() function
iap.restore() returns true
but nothing happened in listener. No callback, no errors, nothing.
pushed iap button in menu and immediately have all 3 callbacks with state 1 iap.TRANS_STATE_PURCHASED without any purchasing dialog on device
and IAP error 7 in console:
Used 1.2.127 for this test and release builds in store.
The same code on iOS test build works ok.
I double checked all restoring code. It calls iap.restore
elseif message_id == game.IAPRESTORE then self.senderIapUrl=sender print("iap restore request from:", self.senderIapUrl) local res=iap.restore() print("iap.restore result:",res) end
|DEBUG:SCRIPT: iap restore request from:|url: [settings:/gui#settings]
|DEBUG:SCRIPT: iap.restore result:|true|
As I remember there was similar theme Restore purchase (DEF-2738) SOLVED an year ago.
Well. Any ideas?