{"action":"opened","issue":{"url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/10","repository_url":"https://api.github.com/repos/googlesamples/android-play-billing","labels_url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/10/comments","events_url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/10/events","html_url":"https://github.com/googlesamples/android-play-billing/issues/10","id":139058171,"number":10,"title":"No longer possible to get subscription SKU details with queryInventoryAsync","user":{"login":"kplatfoot","id":58902,"avatar_url":"https://avatars.githubusercontent.com/u/58902?v=3","gravatar_id":"","url":"https://api.github.com/users/kplatfoot","html_url":"https://github.com/kplatfoot","followers_url":"https://api.github.com/users/kplatfoot/followers","following_url":"https://api.github.com/users/kplatfoot/following{/other_user}","gists_url":"https://api.github.com/users/kplatfoot/gists{/gist_id}","starred_url":"https://api.github.com/users/kplatfoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kplatfoot/subscriptions","organizations_url":"https://api.github.com/users/kplatfoot/orgs","repos_url":"https://api.github.com/users/kplatfoot/repos","events_url":"https://api.github.com/users/kplatfoot/events{/privacy}","received_events_url":"https://api.github.com/users/kplatfoot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-07T18:44:59Z","updated_at":"2016-03-07T18:44:59Z","closed_at":null,"body":"As of commit https://github.com/googlesamples/android-play-billing/commit/4ee7eb837c4685ac0997d1fa6370eb0114e60eb9, `queryInventoryAsync` cannot retrieve SKU details for subscription products. The reason is that `queryInventory` now uses the `moreSubsSkus `argument when querying for `ITEM_TYPE_SUBS.` Prior to the change, both calls to `querySkuDetails` used `moreItemSkus.` Though the new code is correct, it exposes a separate problem, which is that `queryInventoryAsync` takes only a _single_ list of SKUs to query. It used to be possible to include in that list SKUs for both in-app and subscription purchases, and everything worked (perhaps the service's `getSkuDetails` method was filtering them?).\r\n\r\nI have a patch ready that fixes the problem by adding a `moreSubsSkus` parameter to `queryInventoryAsync` and passing it through to `queryInventory`. I've also cleaned up the signatures of the `queryInventory*` methods. There were some overrides that didn't make sense, for example: `queryInventoryAsync(querySkuDetails, QueryInventoryFinishedListener.` The value of the first argument is effectively ignored, because there's no way to actually pass any SKUs to query."}}