7

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?

4

2 回答 2

2

我有同样的问题。问题是我限制了 Google Play Market 在后台运行的权限。这就是为什么 Play Market 没有启动并且我的应用程序反应不佳的原因。

于 2017-09-26T10:21:15.640 回答
1

当应用内计费在一个片段中时,我遇到了同样的问题,我通过将它移动到一个活动来解决它。

于 2013-06-19T17:07:15.170 回答