Skip to main content
Question

Empty products array - Android

  • October 29, 2024
  • 1 reply
  • 52 views

Forum|alt.badge.img+2

Hello,

I’ve read all the other community posts for this issue and can’t seem to get to the bottom of it. I’ve also been through the Why are offerings or products empty? post.

I’m running a Capacitor app with NextJS using @revenuecat/purchases-capacitor 9.0.4. I have configured Purchases with an apiKey and confirmed with Purchases.isConfigured() and Purchases.getCustomerInfo() - both coming back as expected.

When calling Purchases.getProducts({ productIdentifiers: [‘my-product-id] }) I’m just getting back an empty array, no errors.

My Service Account Credentials JSON is verified and I even imported the subscription product from Google Play, so I know the connection is working ok. When viewing the product within the RevenueCat dashboard I see “Store status: Ok”. The subscription is both active and backwards compatible within Google Play.

I have a closed track release with a tester added (myself) and still no luck when trying on a device. I have also tried using Android Studio with a physical device in USB debug mode, I can see plenty of logs about successful calls but the products array is always empty.

I haven’t tried iOS yet, I haven’t got that far as I wanted to prove things worked with Android first.

Any ideas what I could be missing? Also, is setting the app up in closed testing track only needed to be done once? Otherwise it could be a slow feedback loop and blind developing if you cannot get those products when developing locally.

Thanks

 

 

To native (Capacitor plugin): callbackId: 55894438, pluginId: Purchases, methodName: getProducts
callback: 55894438, pluginId: Purchases, methodName: getProducts, methodData: {"productIdentifiers":["getink_premium_v1:monthly-autorenewing"]}
Requesting products from the store with identifiers: getink_premium_v1:monthly-autorenewing
To native (Capacitor plugin): callbackId: 55894439, pluginId: PushNotifications, methodName: addListener
callback: 55894439, pluginId: PushNotifications, methodName: addListener, methodData: {"eventName":"pushNotificationActionPerformed"}
ℹ️ Products request finished for getink_premium_v1:monthly-autorenewing
💰 Retrieved productDetailsList: 
products {"products":[]}
Billing connected with country code: GB
API request started: GET /subscribers/%24RCAnonymousID%3Ad2ebbda43cb643868f413d6e353ba995/offerings
API request completed with status: GET /subscribers/%24RCAnonymousID%3Ad2ebbda43cb643868f413d6e353ba995/offerings 304
😿‼️ Error fetching offerings - PurchasesError(code=ConfigurationError, underlyingErrorMessage=There are no products registered in the RevenueCat dashboard for your offerings. If you don't want to use the offerings system, you can safely ignore this message. To configure offerings and their products, follow the instructions in https://rev.cat/how-to-configure-offerings.

 

This post has been closed for comments

1 reply

Forum|alt.badge.img+2
  • Author
  • New Member
  • 2 replies
  • October 29, 2024

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings