This is the third time I am trying to implement google in-app purchase with Corona into my app. My fist two IAP projects had to be cancelled because of this strange issue with the Corona Google IAP plugin. I decided to wait for a fixed version. Now, a couple of months later, I gave it another try and… this issue still exists!
ISSUES:
-
The google purchase dialog window only appears the first time the app is launched on the device. Then it never appears again until the device was rebooted.
-
The transaction callback listener is NEVER called.
-
It does not matter if real products are used or “android.test.purchased” - when calling store.purchase(), the callback listener is never called (even when the Google purchase dialog window appears and tells that the purchase was completed, the callback listener is not called).
-
I tried this with real products and spend real money to test this a couple of times. Although Google charged me for this, the app’s purchase callback listener was never called.
I am not sure if this is an issue related to the Android version on my device, a general issue or my own fault. But I’m pretty sure that I tried everything possible.
TESTING DEVICE
ASUS Memo Pad HD7
Testing device Android OS version: 4.2.2. (Kernel Version: 3.4.5)
Installed Google Play Store: 6.3.16.B-all [0] 2697688
Installed Google Play Services: 8.7.03 (2645110-030)
Sample code to demonstrate this issue:
[(http://www51.zippyshare.com/v/d9X2GoNW/file.html)
This simple sample project calls store.purchase when the app is launched. Therefore, the callback listener should called at least once - but it is never called on my device. As always, the Google purchase dialog window appears, but only the first time the app is launched on the device. It never appears again then until the device was rebootet. In all cases, the callback listener is never called.
Any help is appreciated. I tried dozens of different daily builds, spent literally hundreds of hours to find out what’s causing this bug but never found a solution