Using Gideros 2017.9, calling iab:requestProducts() with Google I'm getting back all the expected products except for a monthly subscription product. I don't know when that stopped working, but it was working in 2016.8.1. I also don't know if this is an issue with frameworks other than Google.
I see that IAB has been changed in recent Gideros updates. Could one of those changes have effected how the plugin handles subscriptions?
Paul
Comments
If anyone has any insight into why subscriptions no longer work, I'd really appreciate it. A lot of great improvements have been made to Gideros since 2016.8, but for my biggest earning app, I need the subscriptions in IAB.
Paul
https://deluxepixel.com
https://deluxepixel.com
https://deluxepixel.com
Here’s what seems to be broken: The function queryInventoryAsynch() (currently line 686 of IabHelper.java) used to take 3 parameters, and now it takes a fourth. The additional parameter is a list of subscription SKUs. In the past it looks like that method used the same list for subscription and non-subscription SKUs. When queryInvetoryAsynch() is called in the current code (from line 91 of IabGoogle.java) it’s called with null for the list of subscription SKUs. That null parameter gets passed to queryInventory(), which then effectively ignores all subscriptions.
I don't know the code well enough to propose an appropriate fix, but it would seem that with the changes made so far, queryInventoryAsynch() needs to be called with another SKU list for the subscriptions. As far as I know, there's no mechanism in the plugin interface to specify which SKUs are subscriptions, however. A quick fix might just be to pass the same SKU list in for both subscriptions and non-subscriptions when calling queryInventoryAsynch, trusting Google to respond only to the ones presented accurately.
Paul
Likes: SinisterSoft
Likes: SinisterSoft
https://deluxepixel.com
Paul
Likes: antix
Thanks,
Paul
Likes: antix
https://deluxepixel.com
Thanks,
Paul
https://deluxepixel.com
I think if it would be best if you try your proposed fix yourself beforehand (I have no better quick fix to propose). If it does work, then I'll include it in official builds.
Just change IabGoogle.java in /All Plugins/iab/source/Android/src/com/giderosmobile/android/plugins/iab/frameworks/IabGoogle.java, line 91 as you suggested.
https://deluxepixel.com