Skip to main content

Hello my subscription id is lotto_world_pro and base id is lotto-world-pro-monthly. in revenuecat my id for this product is lotto_world_pro:lotto-world-pro-monthly. When i use the code below in flutter if i use revenuecat id i receive a product not found error but if i use just lotto_world_pro(sub id) it works well and revenuecat sees my transactions. Am i doing it right? Shouldn’t the revenuecat id sholud work?

Future<void> _getAndroidProductsSubs() async {

    try {

      androidSubs = await Purchases.getProducts(

        >      

          'lotto_world_pro',

        ],

        type: PurchaseType.subs,

      );

    } on PlatformException catch (e) {

      debugPrint(e.toString());

    }

  }

 

Hi @zumatrahia ,

What version of flutter are you using? 

If you are using our latest version 4.x, you will get one response per productId and it would contain the information from the backwards compatible base plan from the store. Make sure that `lotto-world-pro-monthly` is the backwards compatible in google console as it could mess around with RC.

We have a beta version of flutter that supports the new data model. If that’s the case, you will get a list of store products (one store product per base plan from that subscription).

 

 


Reply