distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

InAppBilling getProducts with large product ID list Android #139

Closed phuxter closed 10 years ago

phuxter commented 10 years ago

Using Latest ane. Im getting a PRODUCTS_FAILED event when I call getProducts passing a (large) array of ids (length 20+) (no message or errorCode).

It works fine on iOS. It works when I remove enough product Ids. (no particular product IDs causing the issue)

marchbold commented 10 years ago

Hi,

This is a known bug in the Google libraries, we've been waiting for a fix from them on the issue and will update as soon as we hear.

Regards, Michael

phuxter commented 10 years ago

Thanks for the quick response Marchbold,

I am due to release an update to our game next week.Can you please give me a little more details to help me resolve the issue.

Thanks for your help. Punya Huxter (BonzaWordPuzzle)

phuxter commented 10 years ago

Hi Michael, Has there been any progress on this issue? I am still having issues and its beginning to effect our release schedule. Thanks.

marchbold commented 10 years ago

Hi,

The only current workaround is to batch your queries, ie. work on the first x number of products, getProducts/restorePurchases/makePurchase etc. Then call getProducts again when you need to use a different set of products.

We are still waiting for an update as far as I'm aware. Feel free to escalate the issue if you have a contact you think will help.

Regards, Michael

phuxter commented 10 years ago

Thanks Michael, Ive implemented the Batch workaround for getProducts(). WORKS.

Unfortunately Its not possible for me to do a similar batch solution with restorePurchases. As it stands users with a large number of purchases will not be able to restore.

I doubt that Google will implement a fix in the next few days but I will mention it to my contact at Google anyway. Hopefully a fix will be available soon.

FYI. Since restorePurchases doesn't work reliably, I implemented a Hack for when users get a FAILed purchases with errorCode BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED (Hack treats these errors as if they were successful).

Have a nice day.