- Home /
IAP Restore purchase on Android "Already Recorded Transaction"
We are experiencing a bug with restoring iap on Android. Here are the steps to get to our issue:
We make a non-consumable purchase which is processed and rewarded correctly.
We uninstall the app.
We reinstall the app. The log file below details what occurs. Google Play returns that the non-consumable ".disableAds" is owned, but when it tries to apply and process it, it reports "Already recorded transaction GPA.3359...."
This error does NOT occur if after we uninstall the app we delete any remaining files relating to the app which are left in the "Android" directory of the device. It seems like the transaction log is not getting deleted during an uninstall.
We are using the most up-to-date Unity IAP services, with Unity 2017.1.1f1. This device is running Android 6.0.1.
I'm not sure how to move forward with this issue. Thank you for your help!
-24 14:51:15.810 14446-14458/? I/Unity: UnityIAP StandardPurchasingModule Version: 1.13.3 (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-24 14:51:15.960 14446-14458/? I/UnityIAP: IAB helper created.
09-24 14:51:16.170 14446-14458/? I/UnityIAP: Starting in-app billing setup.
09-24 14:51:16.180 14446-14446/? I/UnityIAP: Billing service connected.
09-24 14:51:16.190 14446-14591/? I/UnityIAP: invoking callback
09-24 14:51:16.190 14446-14591/? I/UnityIAP: Checking for in-app billing 3 support.
09-24 14:51:16.190 14446-14591/? I/UnityIAP: In-app billing version 3 supported for com.AppsForAnybody.FireBall
09-24 14:51:16.200 14446-14591/? I/UnityIAP: Subscriptions AVAILABLE.
09-24 14:51:16.200 14446-14591/? I/UnityIAP: VR supported.
09-24 14:51:16.200 14446-14591/? I/UnityIAP: onIabSetupFinished: 0
09-24 14:51:16.200 14446-14591/? I/UnityIAP: Requesting 8 products
09-24 14:51:16.200 14446-14591/? I/UnityIAP: QueryInventory: 8
09-24 14:51:16.200 14446-14591/? I/UnityIAP: invoking callback
09-24 14:51:16.200 14446-14591/? I/UnityIAP: Querying owned items, item type: inapp
09-24 14:51:16.200 14446-14591/? I/UnityIAP: Package name: com.AppsForAnybody.FireBall
09-24 14:51:16.200 14446-14591/? I/UnityIAP: Calling getPurchases with continuation token: null
09-24 14:51:16.220 14446-14591/? I/UnityIAP: Owned items response: 0
09-24 14:51:16.220 14446-14591/? I/UnityIAP: Sku is owned: com.appsforanybody.fireball.disableads
09-24 14:51:16.220 14446-14591/? I/UnityIAP: Continuation token: null
09-24 14:51:16.220 14446-14591/? I/UnityIAP: Querying SKU details.
09-24 14:51:16.500 14446-14591/? I/UnityIAP: Querying owned items, item type: subs
09-24 14:51:16.500 14446-14591/? I/UnityIAP: Package name: com.AppsForAnybody.FireBall
09-24 14:51:16.500 14446-14591/? I/UnityIAP: Calling getPurchases with continuation token: null
09-24 14:51:16.520 14446-14591/? I/UnityIAP: Owned items response: 0
09-24 14:51:16.520 14446-14591/? I/UnityIAP: Continuation token: null
09-24 14:51:16.520 14446-14591/? I/UnityIAP: Querying SKU details.
09-24 14:51:16.540 14446-14591/? I/UnityIAP: onQueryInventoryFinished: true
09-24 14:51:16.540 14446-14591/? I/UnityIAP: Inventory refresh successful. (response: 0:OK)
09-24 14:51:16.810 14446-14458/? I/Unity: OnInitialized: PASS
(Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-24 14:51:16.820 14446-14458/? I/Unity: Already recorded transaction GPA.3359-9055-6150-54227
(Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-24 14:51:16.820 14446-14458/? I/UnityIAP: Finish transaction:GPA.3359-9055-6150-54227
The same here. In my case I can't reproduce it. Using multiple devices with the same account seems to be the reason. I purchase non-consumable on one device, expect it to be known on another. Sometimes it goes good and sometimes it's not. Triggering one more time the purchase results in Duplicate transaction.
Your answer
Follow this Question
Related Questions
Unity IAP doesn't work on Android 0 Answers
How to use Google play billing library 3? 0 Answers
UnityIAP not restoring purchases on Android 1 Answer
Purchases showing as tests 0 Answers
How do i Add In App Purchasing Without Being Android Developer 0 Answers