You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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});
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
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
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.
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
The text was updated successfully, but these errors were encountered: