Question

RevenueCat not working in production app

  • 28 April 2023
  • 1 reply
  • 119 views

Badge +1

I have an android app published to the google play store around 4 days ago and revenuecat is not working even though the products are active on the google play console. 
Everything is working on the dev build. Everything loads properly. But in production, with no settings changed, the revenucat part suddenly doesnt work anymore.
I’ve tried doing some error checks and it seems that the code is not getting past the first line of purchases.configure (googleApiKey is defined, i have checked)

await Purchases.configure({ apiKey: googleApiKey });
const offerings = await Purchases.getOfferings();
const customerInfo = await Purchases.getCustomerInfo();

does anyone have any ideas?


1 reply

Userlevel 6
Badge +8

Hey @r1a2k3i4b! 👋

It’s important to include detailed information when asking a question so we’re able to help effectively:

 

Could you send debug logs that reproduce this? You can enable debug logs by following this guide. After they're enabled you'll see logs like this in the console:
 

[Purchases] - DEBUG: No cached entitlements, fetching
[Purchases] - DEBUG: GET /v1/subscribers/<APP_USER_ID> 200
[Purchases] - DEBUG: Purchaser info updated, sending to delegate


Please ensure the debug logs include the entire app life-cycle, including the messages printed during initialization of the SDK. The more information you include here, the better we'll be able to help.

Reply