Skip to content

[in_app_purchase] "Support for pending purchases must be enabled." #40956

@ghost

Description

In app purchase subscription using in_app_purchase 0.2.1+.
Step followed:

  1. I have added subscriptions plan on Google Developer Console.
  2. Uploaded released build on Google Developer Console.
  3. App is approved
  4. Now we are unable to get subscription item list. Getting blank array.

This is code we have used:

Future<void> _getProducts() async {
    Set<String> ids = Set.from([month1, month6, year1]);
    Set<String> ids1 = <String>{month1,month6,year1}.toSet();
    debugPrint('Product List ids : $ids1');
    ProductDetailsResponse response = await _iap.queryProductDetails(ids1);
    setState(() {
      _products = response.productDetails;

      debugPrint('Product List : $_products');
    });
  }

Metadata

Metadata

Assignees

Labels

p: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions