I’ve been following the “Understanding IAP” article by Rob and used the sample code as a basis for my store purchasing code.
However, with Google Play, if I use the code as is (that is, store.init() followed by store.restore()), the game boots up with a “failed” event error message, but no errorString.
Removing store.restore() from boot up fixes this issue, but brings up some questions I just can’t figure out:
-
Is this just a side effect of having a non-live app? (The IAP is registered on Google Play, it’s using my custom keystore, and the app itself is in Production draft mode)
-
How should I be handling this in transactionCallback? (There’s no errorString…and adb just says DEVELOPER_ERROR)