I found the following code from here to get products list from google play store
ArrayList skuList = new ArrayList();
skuList.add("premiumUpgrade");
skuList.add("gas");
Bundle querySkus = new Bundle();
querySkus.putStringArrayList(“ITEM_ID_LIST”, skuList);
is there a way to get dynamic products list? here its hard coded.what happens when i add new products after app launch?
This is now possible using the Inappproducts: list API:
List all the in-app products for an Android app, both subscriptions and managed in-app products.
Also, read about Authorization which is needed for making use of above API.
It is not possible for a reason. If you were able to fetch the updated inapp product list how would you be able to serve those new products without changing the app code? If you change the product list then you have to release an update for the app that deals with the new products.
The only reason to fetch new products without changing the app code would be to change prices for the products themselves but that would mean going against the Google terms & conditions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With