HaxeExtension / extension-iap

Support for In-App Purchase
Other
70 stars 46 forks source link

Empty inventory list for Android? #39

Open anpShawn opened 8 years ago

anpShawn commented 8 years ago

Hi, have been using this extension for quite some time with no issue. However, I recently noticed that on Android I always receive an empty list when querying the inventory, meaning I can no longer display prices to my users. The remaining purchase flow works fine though.

I can't say exactly what would have changed recently- I have the latest official release from github here, and my app currently targets SDK 22 (minimum 11). I have experienced this on both Lollipop and Marshmallow.

bendmorris commented 7 years ago

I started receiving empty responses as well, and splitting my request into batches seemed to help. Not sure if there's an undocumented size limit or something on Google Play.

Note that extension-iap is not designed for batched requests - it completely replaces IAP.inventory with every request, instead of adding the new data. So anything you need from Inventory needs to be pulled out before making the next request.