Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google in app purchasing get products list

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?

like image 910
user1688181 Avatar asked May 14 '13 16:05

user1688181


2 Answers

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.

like image 152
Malwinder Singh Avatar answered Nov 03 '22 08:11

Malwinder Singh


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

like image 22
Gianluca Ghettini Avatar answered Nov 03 '22 06:11

Gianluca Ghettini