Skip to main content
Question

queryProductDetails() from InAppPurchase package awaits forever and never returns after integrating purchases_flutter

  • March 26, 2026
  • 1 reply
  • 60 views

Forum|alt.badge.img
  • purchases_flutter: latest

  • in_app_purchase: latest

  • Platform: Android

  • Framework: Flutter
    Problem:
    After adding purchases_flutter to a Flutter project that already used in_app_purchase, this call queryProductDetails() freezes indefinitely and never resolves:

    final ProductDetailsResponse response = await InAppPurchase.instance .queryProductDetails(productIds);

This post has been closed for comments

1 reply

guilherme
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • March 30, 2026

Hey ​@almuhannad-a7d70c !

This is a known conflict when using both packages together. Both purchases_flutter and in_app_purchase initialize their own connection to Google Play Billing, and the billing service can only handle one active connection at a time. This can cause either paths to blocks from completing its queries, which is why the call hangs indefinitely.

The fix is here would be to drop in_app_purchase and use RevenueCat's SDK only fetching products.

Let me know if you hit any issues still though! Be sure to clean all caches too when adding/removing dependencies, to be sure nothing still lingers.

Best,