java - How to hide the inactive products from in app billing? -


we have android app supporting in app billing v3. in our tests, else worked fine, found inactive products obtained querying inventory.

this how query our google play in app products inventory:

arraylist<string> moreskus = new arraylist<string>(); moreskus.add("gas"); moreskus.add("premium"); mhelper.queryinventoryasync(true, moreskus, mgotinventorylistener);  ...  iabhelper.queryinventoryfinishedlistener mgotinventorylistener = new iabhelper.queryinventoryfinishedlistener() {     public void onqueryinventoryfinished(iabresult result, final inventory inventory) {         if(inventory.hasdetails("premium")) {             system.out.println("inactive product visible app!");         }     } }; 

among 2 products, "premium" inactive, print statement in iabhelper.queryinventoryfinishedlistener still executed!

is there way active products only?

afaik, can remove sku query list

//moreskus.add("premium"); //don't query item 

this depends on code kinda makes sense, since cannot query available products empty "moresku" list, have choose want; depends on code anyway. hope can help.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -