RevenueCat / purchases-flutter

Flutter plugin for in-app purchases and subscriptions. Supports iOS, macOS and Android.
https://www.revenuecat.com/
MIT License
607 stars 168 forks source link

getProducts() returns empty list #833

Closed talkbiz closed 1 year ago

talkbiz commented 1 year ago

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

Describe the bug

A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue.

When I tried to get a list of all products, the print returned an empty list final result = await Purchases.getProducts( ["test_1000", "test_1500"], type: PurchaseType.inapp ); print(result);

Additional context

Add any other context about the problem here.

RCGitBot commented 1 year ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

talkbiz commented 1 year ago

Nevermind, I have been able to resolve it. The issue has to do with Agreement renewal on Apple Store.

yasirali133314 commented 7 months ago

issue to our internal tracker

@talkbiz How do you resolve this issue?

I'm also facing issue in getProducts returns empty in android and ios as my activesubscription is from Stripe.

talkbiz commented 7 months ago

Check if your applestore products is active. Mine was agreement issue. @yasirali133314

yasirali133314 commented 7 months ago

Check if your applestore products is active. Mine was agreement issue. @yasirali133314

In my case the products are Live, may b I need to put products somewhere eg Firebase and fetch the product info from there.