0

What is the difference between

queryPurchases vs queryinventory in in-app biling version 3?

When to use which?

stack
  • 613
  • 10
  • 20

1 Answers1

0

If you are taking about IabHelper class then

queryInventory:

   Queries the inventory. This will query all owned items from the server, as well as
   information on additional skus, if specified. This method may block or take long to execute.

And inside this method is invoked queryPurchases method, which verifying if purchase is legal and then return IABHELPER_VERIFICATION_FAILED or BILLING_RESPONSE_RESULT_OK codes. Also it add purchases in inventory.

BTW, queryPurchases is package-local method - you shouldn't use it.

Divers
  • 9,531
  • 7
  • 45
  • 88
  • The part that is confusing me is: Is this the inventory of what the user owns or all the available purchases that a user can buy or has bought? – stack Mar 26 '14 at 18:30