BillingProcessor (singleton or not) : not android.test.purchased) : Realhi everyone.
I was built my own billing code but there were very bother me because of some error.
so a few weeks ago I change to this fancy library! I'm tesing now with this one.
Almost things is satisfied but except one thing. that is BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED.
If I got this error I can't buy this item anymore. I'm so embrassed. I'm sure my app's user feel same as me. I research a solution from googling. but I couldn't find any thing.
I found one true that is solved release a lock of purchase after about 1 day! It's so strange!
I doubt there is something google's cron logic to solve this problem periodically.
but I want that when the problem occur It have to solve right away.
Anyway, I am asking your help like this. I hope to solve it.
Thanks in advance your advice.
@binsolb to restore purchase history you can use loadOwnedPurchasesFromGoogle
@serggl
I already tried like this
if (bp.loadOwnedPurchasesFromGoogle() && bp.isPurchased(productId)) {
// do some thing
}
but I couldn't get any purchased item. The bp.isPurchased() is always false.
Actually, After about 1 day, the boolean value finally got ture.
Thanks your answer.
Most helpful comment
@binsolb to restore purchase history you can use
loadOwnedPurchasesFromGoogle