Closed ajaymaru closed 5 years ago
Hey @ajaymaru , seems on android you cannot pull all the products (in case there are more than 20), but instead you need to pull them in chunks: https://stackoverflow.com/a/21080893/5272836.
Currently the plugin does not do this, so that's why you get that error.
Thanks @PeterStaev for quick response.
@PeterStaev, I have looked through the code and working on the enhancement. Will send you a pull request once I have it tested at my end.
@PeterStaev, sent the PR (#79 ) for your review when you get a chance. Thanks.
Thank you! New version on npm (2.0.13) includes your fix.
When the plugin is initialized (purchase.init) with more than 20 products, subsequent call to purchase.getProducts throws error: "Error: Response from service: 5"
If there are 20 or fewer products, then the plugin works as expected and quite nicely.
Not sure if I am missing something. Any pointers will be greatly appreciated.