This fixes an issue with subscriptions in the billing-v5 branch where subscription_offer_details were always coming back "null" when accessed within Godot. This was preventing me from getting "formatted price strings" etc, for my subscriptions.
The problem I identified is that instances of ArrayList<Dictionary> generated during convertProductDetailsToDictionary() in GooglePlayBillingUtils.java were getting "nulled" as the data was passed to Godot through emit_signal(). I converted all ArrayList<Dictionary> to Object[] before dictionary.put() is called, and it is no longer being nulled. With this fix, you can read subscription_offer_details successfully
This fixes an issue with subscriptions in the billing-v5 branch where subscription_offer_details were always coming back "null" when accessed within Godot. This was preventing me from getting "formatted price strings" etc, for my subscriptions.
The problem I identified is that instances of
ArrayList<Dictionary>
generated duringconvertProductDetailsToDictionary()
in GooglePlayBillingUtils.java were getting "nulled" as the data was passed to Godot throughemit_signal()
. I converted allArrayList<Dictionary>
toObject[]
beforedictionary.put()
is called, and it is no longer being nulled. With this fix, you can read subscription_offer_details successfully