Search code examples
androidin-app-purchasein-app-billing

Android: In App Purchased list queryInventoryAsync, Google returning wrong purchased list


I have same account on two different devices. if I purchased something on one device it will not showing on another device. I am using queryInventoryAsync to get the skuList. but google returning different results on both devices.

But if I uninstalled the app and install it again it will return right result


Solution

  • Google Play caches In-app Billing information locally on the device from V3 onwards. Instead of getting data from Google server evry time it looks up the local cache when ever you query for the purchase. That might be the reason when you are querying you did not get the correct results. Clear Cache Data of Google Play App and launch your app. This time Google restores the purchase information from Google Server which may gives you the correct results.