Android consumable: “already own that item” but inventory.hasPurchase() is false

后端 未结 2 656
我在风中等你
我在风中等你 2021-02-07 04:42

I\'m stuck with Google In App v3 - I tested a purchase without consumption (e.g. when app crashes between buying and consuming) - now I don\'t find a way out.

If I try t

2条回答
  •  遇见更好的自我
    2021-02-07 05:12

    I ran into this exact problem. I had two Google accounts on the phone, one which was the developer account (which I foolishly used my personal account for) and another which was the test account I registered in the developer console. I had removed and re-added the developer account from my accounts on the phone, which allowed me to make test-purchases from my app, thinking if the developer account was the second on this list it would use the first for purchases.

    Alas, after a couple of runs of the app I ran into your issue. I gave up trying to have both and removed the developer account from my phone. While incredibly inconvenient, this got rid of this problem and allowed me to test purchase, consume, query, etc.

提交回复
热议问题