Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In app billing android gives error -1005?

I am going to implement managed in app billing in android I have tried a trivial sample application but when I run the app on a device it gives me error.

I don't understand what I am doing wrong and why this error occurred.

First display popup enter image description here

when I click OK than it give me error on log.

Second display popup enter image description here

06-23 14:37:04.912: E/Trivial Drive(19340): **** Trivial Drive Error: Error purchasing: IabResult: User canceled. (response: -1005:User cancelled)
like image 859
Mahesh Avatar asked Oct 21 '22 06:10

Mahesh


1 Answers

It is simple: Google Play In-app purchase testing is not so intuitive.

To test new IAPs you should upload a Beta version of your App (with all logic already implemented) and register some test accounts to download that Beta Version and test.

Every change you should upload a new Beta Version and the error wont appear anymore.

PS: To ensure the logic is working fine, you should use test billing IDs listed here: https://developer.android.com/google/play/billing/billing_testing.html

like image 127
Airton Barbosa Avatar answered Oct 23 '22 06:10

Airton Barbosa