Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore Purchases (queryInventory) Failing with 20+ Purchases: responseCode 5 (FIXED - Need Help Committing Fix). #19

Open
natefollmer opened this issue Aug 16, 2016 · 1 comment

Comments

@natefollmer
Copy link

natefollmer commented Aug 16, 2016

Turns out my previous 'failing on Newer Samsung Devices' issue was just a coincidence - queryInventory is failing if users have more than 20 purchases. I tested this behavior and can replicate it every time. I created 20 promo codes for 20 different in-app products, purchased 15 items with the codes, restored fine on all my devices... Purchased 5 more to get to 20, fails on all my devices (Samsung S5, HTC ONE, LG G4).

I tried passing only 5 SKUS at a time into queryInventory with moreItems, but it still fails with ResponseCode 5. I actually tried this before I knew what the problem was and it was still returning ALL purchased SKUS, not info on just the ones sent.

InAppBilling.queryInventory({
           queryDetails:"true",
           moreItems:SKUS //string Array of 5 SKUS
        });

edit: Could this help? I'm not very seasoned in Titanium Module development, so I don't know how to implement this to test: http://stackoverflow.com/questions/20862280/googles-iab-api3-getskudetails-method-returns-failed-5-developer-error

@natefollmer
Copy link
Author

I compiled the module myself from the old 3.0.2 code, but replaced the getSkuDetails() code as mentioned in the link above and it failed, BUT I changed the query to 10 and it works! Could one of the contributors fix this? I have no idea how to actually make the change here :)

@natefollmer natefollmer changed the title Restore Purchases (queryInventory) Failing with 20+ Purchases: responseCode 5 Restore Purchases (queryInventory) Failing with 20+ Purchases: responseCode 5 (FIXED - Need Help Committing Fix). Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant