Skip to main content

I’m facing a very frustrating error. I’m able to successfully initialize the react-native sdk: 

useEffect(() => {
Purchases.setLogLevel(Purchases.LOG_LEVEL.DEBUG);
Purchases.configure({
apiKey: Config.REVENUECAT_API_KEY_IOS,
});

const productIds = d'com.***.*****.staging.pro.monthly'];
Purchases.getProducts(productIds).then((products) => {
console.log('Products:', products);
}).catch((error) => {
console.error('Error getting products:', error);
});
}, /])

 

In this case, it returns a blank array of products. However, in my project configuration, I have successfully imported products from App Store Connect.

 

Secondly, when I run Purchases.getOfferings(), it gives me the Error 23 which mentions misconfiguration. I’m not sure why am I getting that error. I have completed all the steps in the https://www.revenuecat.com/docs/offerings/troubleshooting-offerings guide and I’m still getting the same issue.

 

I’m running my app in a simulator. I know that I need a .storekit file to test purchases on Simulator, but I don’t have that file for now since I’m just trying to display the paywall and not actually test the purchases.

What could be going wrong here.

 

I also have been getting this in the last 24 hours, when everything had been working for me for the last 6 months without issue.

That said, often in the simulator this error occurs, so it’s worth trying a real device.

 

For me, it started happening in the last 24 hours for Testflight users, which I think can sometimes happen, although it never has before.


Yes me too same problem. 

I never had this issue either on Testflight or on Dev Server.


Hey ​@zain-zafar-395908 ,

Error 23 refers to not being able to connect properly to the Store - there are a known number of reasons why this can happen (see more here). I double checked your configuration on a sample app and I was able to retrieve your products as expected. Could you confirm if you are still experiencing this behaviour? 

@alex-2273f5 ​@midwid we have recently opened (and are monitoring) an ongoing issue GitHub #4954 regarding both an iOS 18.4 simulator issue and intermittent delays on fetching offerings/products.

We've confirmed that this is a StoreKit issue and have filed a Feedback with Apple to let them know about it.

Best,
Gui