None Current offering are not available in production

  • 11 November 2021
  • 9 replies

I have several offerings, one of them is the Current.

I fetch the offering in my react native app this way:

import Purchases from 'react-native-purchases';

export const Premium =(props: {}) => {

useEffect(() => {
(async () => {
const offerings = await Purchases.getOfferings();
console.log(offerings.all) <-----------
}, []);



In dev mode, ‘all’ includes all my offerings including custom offerings, however in production only my Current is included in ‘all’


Best answer by Yakov 5 December 2021, 14:09

View original

9 replies

Userlevel 3
Badge +7

Hey @Yakov :wave: ,


Could you send debug logs that reproduce this? Please omit any sensitive information when sending this over.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.


Let me know if you have any questions!

Here is the logs ^^^
We can see the products from all of the offering are being fetched.

These are the offerings.
As I mentioned, in development, all 5 offerings are available, in release only default is available. 


Upgraded react-native-purchases to the lates version, still the same.

Userlevel 3
Badge +7

Hi @Yakov , 

Thanks for providing those logs. I don’t believe it’s a backend issue since the API response returns all Offerings regardless of the environment.

You haven’t changed any code from testing to production correct?

What is your specific use case that you are trying to account for?

I didn’t change anything from testing to production.

I’m trying to do an A/B/C test. Meaning test between more than 2 variants.

Userlevel 3
Badge +7

Hey @Yakov , 

Let me talk to one of our SDK engineers about this issue and I will get back to you. 

We also offer experiments that would do this same behavior:

Thanks @jazmine.

I saw the experiments feature, however experiments supports only 2 variants at the same time.

Issue resolved. Purchases.getOfferings works fine

Badge +2

Hi @Yakov how was the issue solved for you, I am running into the same issue