Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSkuDetails() failed for queryProductDetailsAsync. Response code: 3 #472

Open
giantss opened this issue Feb 29, 2024 · 0 comments
Open

Comments

@giantss
Copy link

giantss commented Feb 29, 2024

An exception occurs when calling getProducts on the Android platform (see Actual behavior for details). I checked the environment Google Play Store is logged in.

Version of flutter_inapp_purchase

flutter_inapp_purchase: ^5.4.2

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

await FlutterInappPurchase.instance.getProducts(productLists);

No exception occurs

Actual behavior

W/BillingClient(22544): getSkuDetails() failed for queryProductDetailsAsync. Response code: 3
E/DoobooUtils(22544): Error Code : 3
E/flutter (22544): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(getProducts, E_SERVICE_ERROR, Billing is unavailable. This may be a problem with your device, or the Play Store may be down., null)
E/flutter (22544): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
E/flutter (22544): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)
E/flutter (22544): <asynchronous suspension>
E/flutter (22544): #2      FlutterInappPurchase.getProducts (package:flutter_inapp_purchase/flutter_inapp_purchase.dart:152:24)
E/flutter (22544): <asynchronous suspension>
E/flutter (22544): #3      MyPayController.getProduct (package:tk_hsk/app/modules/pay/controllers/pay_controller.dart:137:14)
E/flutter (22544): <asynchronous suspension>
E/flutter (22544): #4      MyPayController.onInit (package:tk_hsk/app/modules/pay/controllers/pay_controller.dart:106:5)
E/flutter (22544): <asynchronous suspension>

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

await FlutterInappPurchase.instance.getProducts(productLists);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant