1

When using in_app_purchase, the following code always returns false for isAvailable:

final isAvailable = await InAppPurchase.instance.isAvailable();

This is called in a GestureDectector onTap callback.

I am trying to connect to the Play store. The code is running on the Android Emulator. I am using in_app_purchase version 3.0.6.

I don't have billing client implementation in app-level build.gradle, as per this answer. The only config-level setting I have related to in_app_purchase is the dependency in pubspec.yaml.

user2233706
  • 6,148
  • 5
  • 44
  • 86

0 Answers0