Skip to main content

I am trying to use RevenueCat for selling consumable products on my ReactNative mobile app. To start with, I configured a product in my revenuecat account, connected it with a in app product on Google Play. In revenuecat, I can see the two are connected properly. I do not have any offerings or entitlements, because these consumable products are open for all users.

However, in my code, when I query

Purchases.getProducts(["productId"])

 get an empty array. Struggling for two days, not able to guess what could be the issue? Can you please help?

Hey @vikas-solegaonkar 

 

If your products, offerings, or packages are empty it's most likely related to a configuration or setup issue in Google. We've put together a handy guide here that outlines the common reasons for this here: https://community.revenuecat.com/sdks-51/why-are-offerings-or-products-empty-124

 

Are you sure you've published your app on a closed track? And can you double check your products are marked as Backwards Compatible in the Google Play Console dashboard? https://www.revenuecat.com/docs/android-products#google-subscription-model-v2---current-revenuecat-support

Here's how it works under the hood:

  1. Products are configured in each store
  2. Product identifiers are added to your offering configuration in the RevenueCat dashboard
  3. The RevenueCat SDK fetches the configuration from the RevenueCat API
  4. The SDK requests the products in the configuration from the stores directly
  5. The stores return the valid products from that request


If the stores are unable to return valid products, it means that somewhere in that cycle there is a configuration issue. If there is a typo in your product identifier, the request will fail. If the bundle ID doesn't match the configuration in App Store Connect (or package name for Google Play, etc.), the request will fail.