Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android InApp Purchase issue (-1002: Bad Response received)

I have an app with IAP implemented and it works fine for most of the time. However, some installations are reporting a -1002 error code from IABHelper (which is not documented anywhere). Here's what the logs tell me (this happens right after the user returns from Google Play):

2013-05-03 11:40:03,781 774539 [main] ERROR: In-app billing error: Null data in IAB activity result.

2013-05-03 11:40:03,786 774544 [main] DEBUG: Purchase finished: IabResult: Null data in IAB result (response: -1002:Bad response received), purchase: null

2013-05-03 11:40:03,803 774561 [main] ERROR: Error purchasing: IabResult: Null data in IAB result (response: -1002:Bad response received)

Why error -1002 occurs?

Is is a problem with Google play or my client implementation?

like image 371
Jay Sidri Avatar asked May 06 '13 07:05

Jay Sidri


2 Answers

I had the same problem. Issue was that i restricted permission of Google Play Market to run in background. That's why Play Market not launched and my application got bad response.

like image 120
Ирек Альмухаметов Avatar answered Oct 21 '22 16:10

Ирек Альмухаметов


I had the same problem when the in-app billing was in a fragment, I solved it solved by moving it to an activity.

like image 31
Nejc Avatar answered Oct 21 '22 18:10

Nejc