Search code examples
androidin-app-billinggoogle-play

Google play in-app v3 : upgrading from v2 to v3 = no item in inventory but item already owned when trying to buy


I have an old app using InApp Billing v2. Which work well. I Want to upgrade it to InApp Billing v3, like other of my apps succefully updated. So i use the Google Sample iabhelper, and use it with my public key / products (no change made, just use the same infos).

Before update, i had already buyed the inapp product (full version unlock/non consumable/managed).

With my update, the "query inventory async" return an empty inventory But when i push the button to buy the product, google give me an error "already owned/buyed".

I already had cleared google play store cache, uninstall/reinstall apps, reboot my device (that do it on multiple device using my account).

At launch, all seems to work without any errors display (all debug log say OK).

I don't know what to do... So if someone have any idea...

EDIT : i'm testing it with release signed apk (with same version as on the store version).


Solution

  • Ok ! I finally found a solution... I use billing V2(restore) AND V3(restore+buy)... It's really horrible to have to do that but i found no other solution... :X